Sun Studio 12: Debugging a Program With dbx

Specifying a Path Name for the JVM Software

By default, dbx starts the JVM software in your path if you do not specify a path name for the JVM software.

To specify a path name for the JVM software, set the jvm_invocation environment variable to the appropriate path name, as in the following example.


jvm_invocation="/myjava/java -Xdebug"

This setting causes dbx to start the JVM software as follows:


/myjava/java -Djava.compiler=NONE -Xdebug -Xnoagent -Xrundbx_agent:sync