Java commands: Debugging a Java client from startup

JDK 1.1.x

idebug -qlang=java -qjvmargs="-nojit
-Dcom.ibm.CORBA.EnableApplicationOLT=true 
-Dcom.ibm.CORBA.requestTimeout=0 
-Dcom.ibm.CORBA.BootstrapHost=<BootstrapHostname> 
-Dcom.ibm.CORBA.OLTApplicationHost=<OLT_Server_Host>  
-Dcom.ibm.CORBA.OLTApplicationPort=<OLT_Server_Port> 
-DOLTClient=true" 
-classpath "<path\YourAppJarFile>;
<path\somojor.zip>;<path\dertrjrt.jar>;%CLASSPATH%" AppName

Variation for AIX:

where:

Notes

JDK 1.2.2+JDPA

For the Java 2 platform:

idebug -qlang=java -qjvmargs="-Xdebug -Xnoagent 
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=<JVM_port> 
-Djava.compiler=NONE
-Xbootclasspath/a:"<WebSphere_jdk>\lib\tools.jar;<WebSphere>\lib\derdbpw.jar"
-classpath "<path\YourAppJarFile>;<WebSphere>\lib\dertrjrt.jar;%CLASSPATH%" 
-Dcom.ibm.debug.jdwpport=<JVM_port> 
-Dcom.ibm.CORBA.EnableApplicationOLT=true 
-Dcom.ibm.CORBA.requestTimeout=0
-Dcom.ibm.CORBA.OLTApplicationHost=<OLT_Server_Host> 
-Dcom.ibm.CORBA.OLTApplicationPort=<OLT_Server_Port>
-DOLTClient=true" AppName

Variation for AIX:

where:

Notes

JDK 1.3.x

idebug -qlang=java -qjvmargs="-Xbootclasspath/a:"<WebSphere_jdk>\lib\tools.jar;"
-Djava.compiler=NONE 
-classpath "<path\YourAppJarFile>;<WebSphere>\lib\dertrjrt.jar;%CLASSPATH%" 
-Dcom.ibm.debug.jdwpport=<JVM port> 
-Dcom.ibm.CORBA.EnableApplicationOLT=true 
-Dcom.ibm.CORBA.requestTimeout=0 
-Dcom.ibm.CORBA.OLTApplicationHost=<OLT_Server_Host> 
-Dcom.ibm.CORBA.OLTApplicationPort=<OLT_Server_Port>
-DOLTClient=true" AppName

Variation for AIX:

where:

Note:


Debugging client applications from startup


Java commands for tracing and debugging