General Setup for Java
This is the general setup for debugging Java applications:

Option |
Use to |
||
Application (Enter path) |
Identify the fully qualified Class name to debug, followed by any arguments. The Class must have a method declared with the following signature: public static void main(String[]); The debugger calls this method on the Class you name. In the example above, the parameters 1, 2 and 3 are passed to the method. You can also debug a Java application by attaching to an existing Java process. |
||
Enter any run time variables below |
Type any required command line options to the Java Virtual Machine. You also must provide a parameter (jre) that is a path to be searched for the jvm.dll. This is the DLL supplied as part of the Java runtime environment or Java JDK from Sun MicrosystemsTM (see Debugging). In the example above, a virtual machine is created with a new Class path property that comprises any paths named in the environment variable classpath 1603 plus the single path "C:\benchmark\java\example1". If no Class path is specified, the debugger always creates the virtual machine with a Class path property equal to any path contained in the environment variable plus the path entered in the default working directory of this script.
|
||
Show Console |
Create a console window for Java. If no console window is required, leave blank. |
||
Use Debugger |
Select Java. |