Thursday 7 January 2016

SETTING PATH AND CLASSPATH FOR JAVA

Java is freely available on Oracle's Website. Download the latest version of JDK (Java Development Kit) on your machine. Do check whether your machine is 32 bit or 64 bit and download that particular Java version. 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.
An Environment variable is a dynamic "object" on a computer that stores a value(like a key-value pair), which can be referenced by one or more software programs in Windows.
Setting up of path for windows
For setting the class path, you have to follow the given steps:
1.First install the jdk in your system.
2.Select and copy the jdk path from your system.
3.Right click on My Computers and select Properties
4.Go to the Advance System Settings tab.
 
 
 
5.Click on Environment Variables button.
 
 
6.Click edit button from system variables to open the EDIT SYSTEM VARIABLE dialog box.
7.Paste the path in the variable value dialog box.
 
 
 
 
 
 
 
 

No comments:

Post a Comment