Name

instjar — Installs one or more jar files containing additional commands

Synopsis

instjar [jarfile [...]]

Description

This command installs jar files containing additional shell commands. An arbitrary number of jar files can be supplied.

If this command is invoked with no arguments, it lists all installed jar files. Use the given indexes to uninstall jar files with the uninstjar command.

The class files of the xxx command must be in the net.jxta.impl.shell.bin.xxx package, and the main class must be named net.jxta.impl.shell.bin.xxx.xxx. Accordingly, the class files must be placed in a directory named net/jxta/impl/shell/bin/xxx within the jar file, and must extend the ShellApp class.

The list of installed jar files is stored in the instjars environment variable.

Example

To install two jar files, C:\userlib\usrcmds.jar and C:\userlib\toolscmds.jar:

JXTA>instjar c:/userlib/usrcmds.jar c:/userlib/toolcmds.jar

Note that you use forward slashes in the command, regardless if the platform on which the shell is running.

To list all installed jar files with their indexes:

JXTA>instjar
0 c:/userlib/usrcmds.jar
1 c:/userlib/toolcmds.jar

See Also

uninstjar

Get JXTA in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.