Troubleshooting

Starting a Debugging VM

Q1:Why does my JDK 1.2 implementation complain when I try to use the -debug flag?
You probably didn't turn off the Just-In-Time (JIT) compiler. Most Java implementations can't run the debugger when the JIT is active. Not only must you disable the JIT, but you must usually disable it on the command-line before the -debug options.
Q2:Why does JDK 1.2 complain about not being able to find tools when I use the -debug flag?
You must include the -Xbootclasspath on the command line when you use the -debug flag. Make sure you include the lib\tools.jar and the jre\lib\rt.jar files (including the complete path name, such as c:\jdk1.2.2\lib\tools.jar).

Attaching a Debugger

Q1:I started my Java Virtual Machine in debug ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.