Access the Server Manager and click the Java tab.
Click JVM General.
Specify the Java home in the Java Home field.
The Java home is the path to the directory where the JDK is installed.
To enable debugging, select On from the Debug Enabled drop-down list
Specify debug options in the Debug Options field.
For more information about debug options, see JPDA Options
Click OK.