At 10:17 AM 4/23/2001 -0400, Max Gravitt wrote:
>I get the following error when launching a process using JDEbug. When I
>don't use the "classic" mode, I don't get an explicit error message, but it
>doesn't seem to work (the buffer is included at bottom). I assume that this
>is the bug in HotSpot mode.
>When I do use the "classic" mode, I get "Error: debugger unable to launch
>App." When I run the command (with "classic" mode) in a shell, I get
>:"Error: no `classic' JVM at `C:\Program
>Files\JavaSoft\JRE\1.3.0_01\bin\classic\jvm.dll'."
>
>If this is the same JDEbug initialization error that has been posted several
>times, I'm sorry and please let me know.
>
It has not only been posted but also described in detail in the JDEbug
User's Guide.
- Paul
>From the JDEbug User's Guide:
================================================================
Launching an Application in Classic Mode
Depending on the version of the JDK you are using, the debugger can launch
a debuggee process in either of two modes:
� classic
Uses just-in-time (JIT) compilation of classes to speed up execution of a
program. This is the mode used in early versions of the JDK. Hence its name.
� HotSpot
Speeds up execution by detecting and compiling heavily used fragments of
code (hot spots). Unfortunately, the JPDA does not work reliably in this
mode (see JDEbug and Hotspot). Therefore, you should use classic mode to
launch a debuggee application.
The debugger launches applications in HotSpot mode by default. To launch an
application in classic mode, type M-x customize-variable
jde-run-classic-mode-vm and toggle the variable on.
Note If the JDK's Java Runtime Environment (JRE) is installed on your
system, JPDA sometimes uses the vm installed in the JRE's bin directory to
launch the debuggee application. (I'm not sure exactly how the JDPA
determines which vm to use to launch a debuggee application. It seems to
vary from system to system.) Unfortunately, on Windows, at least, the JDK
installer installs only the HotSpot vm in the JRE bin directory. If you
want to debug applications, you must manually install the classic mode vm
in the JRE bin directory itself. To do this, simply copy the classic
subdirectory from the jre subdirectory of the JDK to the bin subdirectory
of the JRE. After you have done this, the JRE bin directory should look
similar to the following:
- c:\Program Files\
- JavaSoft
- bin
classic
hotspot
+ lib