Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

General Setup for Java

This is the general setup for debugging Java applications:



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.


If source files and .class files are located under different directory trees, the Class path property MUST include both root path(s) to the source and root path(s) to binary class files.

Show Console

Create a console window for Java. If no console window is required, leave blank.

Use Debugger

Select Java.