Running the Classic VM
Do you have a Classic VM?
The first question to answer is, is the Classic VM
available? If you are using JavaSoft Solaris JDK 1.3 or any
of the JavaSoft 1.4 JDKs, you will only have the HotSpot VM.
Otherwise, continue below.
Running the Classic VM
There are a couple of ways to run the Classic VM in place
of the HotSpot VM. One is to change the order of the lines in
the jre/lib/jvm.cfg file. The other way is to
pass -classic whenever you invoke JSwat and
launch the debuggee VM. The former is easier to deal with, so
we will look at that in more detail.
Typically the jre/lib/jvm.cfg file has the
"-hotspot" line before all the other lines. To use
the Classic VM by default, simply edit this file and put the
"-classic" line before all of the others. Then
whenever you start a JVM, it will run with the Classic
interpreter.
As mentioned above, not all JDKs have a Classic VM. In
such cases there probably is not a
jre/lib/jvm.cfg file to edit.
Launching a Debuggee using Classic
To have launched debuggee JVMs use the Classic VM, check
the checkbox in the "Options" menu. Or, add the
-classic option when using either the
load command or the "Start VM"
dialog.
|