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]
# 1

> 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

debugging_teama at 2007-7-15 1:57:12 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2
Thanks. It is working as suggested. I thought the classpath environmental variable with d:\j2sdk142\lib will do the trick.THanks again.
ym_lynna at 2007-7-15 1:57:12 > top of Java-index,Archived Forums,Debugging Tools and Techniques...