How to set class path in Command prompt for Java code

How to set class path in Command prompt for Java code

How to set class path
in Command prompt for java code
set path = “C:Program FilesJavajdk1.6.0_12bin”
To compile Java program:
javac progName.java

 

To Run Java program:
java progName




Cheers!!!

Leave a Reply