How to set destination of the class file in Java



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