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.jarNote 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.jarSee Also
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access