Setting Classpath for Java in windows 7
Java is freely available on Oracle's Website. Download the latest version of JDK (Java Development Kit) on your operating system. Install JDK on your machine. Once you have installed Java on your machine you would need to set environment variable to point to correct installation directory.
PROCEDURE:
Assuming that you have installed Java in C:\ Program files/ Java / JDK directory
Step 1:Right click on my computer and select properties.
Step 2:Go to the Advance System Settings tab.
Step 3:Click on Environment Variables button.
Step 4: Now alter the path variable so that it also contains the path to JDK installed
directory.
Step 5: Select path and click on edit and past class path.Click on ok button.
Step 6: Now go to command prompt and type java and javac, If you successfully
make it you will see commands acknowledge.
Step 7: That's it your done!
Category: Java, Programming
0 comments