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 Files\Java\jdk1.6.0_12\bin”

To compile Java program:
javac progName.java
 
To Run Java program:
java progName


Cheers!!!

No comments:

Post a Comment