NonStop Server for Java Tools Reference (NSJ 4.2+)
Table Of Contents
- NonStop Server for Java Tools Reference
- Title Page
- Contents
- extcheck: JAR Conflict Detection Tool
- idlj: IDL-to-Java Compiler
- jar: Java Archive Tool
- jarsigner: JAR Signing and Verification Tool
- java: Java Application Launcher
- javac: Java Compiler
- javadoc: Java API Documentation Generator
- javah: C Header and Stub File Generator
- javap: Java Class File Disassembler
- jdb: Java Debugger
- keytool: Key and Certificate Management Tool
- kinit: Kerberos Tool
- klist: Kerberos Display Entries in Credentials Cache and keytab
- ktab: Kerberos Key Table Manager
- native2ascii: Native-to-ASCII Converter
- orbd: Object Request Broker Daemon
- rmic: Java RMI Compiler
- rmid: Java RMI Activation System Daemon
- rmiregistry: Java Remote Object Registry
- serialver: Serial Version Command
- servertool: Java IDL Server Tool
- tnameserv: Naming Service Access

You can then attach jdb to the Java VM with the following command:
jdb -attach 8000
Note: MyClass is not specified in the jdb command line in this case
because jdb connects to an existing Java VM instead of launching a
new one.
There are many other ways to connect the debugger to a Java VM, and all of them
are supported by jdb, as specified in Connecting for Remote Debugging.
Basic jdb Commands
The following is a list of the basic jdb commands. The Java debugger supports
other commands, which you can list by using the jdb help command.
{help | ?}
Displays the list of recognized commands with a brief description.
run
After starting jdb and setting any necessary breakpoints, you can use this
command to start the execution of the debugged application. This command
is available only when jdb launches the debugged application (as opposed
to attaching to an existing Java VM).
cont
Continues execution of the debugged application after a breakpoint,
exception, or step.
print
Displays Java objects and primitive values. For variables or fields of
primitive types, the actual value is printed. For objects, a short description is
printed. See the dump command below for getting more information about
an object.
Note: To display local variables, the containing class must have
been compiled with the javac -g option.
print supports many simple Java expressions including those with method
invocations, for example:
print MyClass.myStaticField❍
print myObj.myInstanceField❍
print i + j + k (i, j, k are primitives and either fields or local
variables)
❍