Where is JDI class in J2SDK1.4.2?
I encountered the following error while running the Trace example:
D:\JPDA\Trace\classes>java com.sun.tools.example.trace.Trace
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jdi/connect/VMStartException
Can someone help me how to resolve the JDI class?
Thanks!
[315 byte] By [
YMLYNNa] at [2007-9-29 12:11:24]

> Exception in thread "main"
> java.lang.NoClassDefFoundError:
> com/sun/jdi/connect/VMStartException
The JDI classes are in tools.jar, which is part of the SDK
but is not shipped with the JRE.
You need to add tools.jar to your classpath:
On U*ix platforms:
java -classpath "$JAVA_HOME/lib/tools.jar:." com.sun.tools.example.trace.Trace
On win32:
java -classpath "%JAVA_HOME%/lib/tools.jar;." com.sun.tools.example.trace.Trace