Set Up Java Development Environment (JDK) on Windows
Go tohttp://java.sun.com/javase/downloads/index.jsp, and select the latest JDK. As of thewriting of this article, the latest JDK version is JDK 6 Update 14.Once the installation package is downloaded, double click to start the installation process.You can keep all the default settings such as default JDK installation path.Go to C:\ProgramFiles\Java\. You should see all the Java installations in this directory. There should be a jdk1.6.0_13 directory.
Next, we need to set up the system environment variables for JDK. Go to “Start”->”ControlPanel”.Then select “Performance and Maintenance”.Select “System”.Select the “Advanced” tab and then click the “Environment Variables” button.
From the System variables list, select “Path” variable and click “Edit”.