JDK is the software development kit for creating Java programs. Instructions below show you step-by-step how to install and set it up.
-
Download Java Development Kit(JDK). Install it and follow the instructions shown on the screen.
-
Create an environment variable JAVA_HOME and set its value to the folder path of you JDK installation(e.g. C:\Program Files\Java\jdk1.6.0_06).
- Depending on the version of your MS Windows, the steps below may be different but similar.
- If you are using MS Windows XP, then open [Classic View]Control Panel->System->Advanced->Environment Variables.
- If you are using MS Windows Vista, then open [Classic View] Control Panel->System->Advanced system settings->Advanced->Environment Variables.
- Under the User variables for XYZ(e.g. Administrator) section, click on the New... button.
- Enter the variable name as JAVA_HOME.
- Enter the variable value as the installation path for the Java Development Kit.
- Click on the OK button.
-
Now, add the BIN folder of your JDK to the PATH environment variable.
- Under the User variables for XYZ(e.g. Administrator) section, search for the PATH variable. If the PATH variable is not listed, then create it. Otherwise, edit it.
- If you have to edit the PATH, then select it. Click on the Edit button and append the following line to the Variable value input field:
- If you have to create the PATH, then click on the New button. Set the Variable name to PATH and then set the Variable value to
- Click on the OK button.
- Open a new Command Prompt for the change to take effect and then execute the following command:
It should show the version number of your Java Compiler(javac).