Java Examples - Debug a java file


Advertisements


Problem Description:

How to set destination of the class file?

Solution:

Following example demonstrates how to debug a java file using =g option with javac command.

c:> javac demo.java -g

Result:

The above code sample will produce the following result.

Demo.java will debug.

java_environment_setup.htm

Advertisements