Skip Headers
Oracle GlassFish Server Reference Manual
Release 3.1.2

Part Number E24938-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

list-libraries

lists library JAR files on GlassFish Server

Synopsis

list-libraries [--help] [--type={common|ext|app}]

Description

The list-libraries subcommand lists library archive files on GlassFish Server.

The --type option specifies the library type and the GlassFish Server directory for which libraries are to be listed.

This subcommand is supported in remote mode only.

Options

--help
-?

Displays the help text for the subcommand.

--type

Specifies the library type and the GlassFish Server directory for which libraries are listed. Valid values are as follows:

common

Lists the library files for the Common class loader directory, domain-dir/lib. This is the default.

ext

Lists the library files for the Java optional package directory, domain-dir/lib/ext.

app

Lists the library files for the application-specific class loader directory, domain-dir/lib/applibs.

For more information about these directories, see "Class Loaders" in Oracle GlassFish Server Application Development Guide.

Examples

Example 1   Listing Libraries

This example lists the libraries in the application-specific class loader directory on the default server instance.

asadmin> list-libraries --type app
mylib.jar
xlib.jar
ylib.jar
zlib.jar
Command list-libraries executed successfully.

Exit Status

0

subcommand executed successfully

1

error in executing the subcommand

See Also

add-library(1), remove-library(1)

asadmin(1M)

"Class Loaders" in Oracle GlassFish Server Application Development Guide