Install Java JDK in Windows 8

Monday
Instructions to install JDK in Windows 8


Browse to Oracle download page(http://www.oracle.com/technetwork/java/javase/downloads/index.html) to download Java Platform (JDK), the current version is Java Platform (JDK) 7u2.
Browse to Oracle download page

Click to Accept License Agreement, select download Windows x86 ot x64. It's jdk-7u2-windows-i586.exe for Windows x86 in my case.
Download setup file

Execute the downloaded file.




Accept the Destination Folder, click Next.
Accept the Destination Folder


Click Continue button to continue JavaFx 2.0 SDK Setup.
JDK Setup complete

Install JavaFx 2.0 SDK Setup, click Next.
Install JavaFx 2.0 SDK Setup

Accept the JavaFx 2.0 SDK installation director.
Accept the JavaFx 2.0 SDK installation director



Complete by clicking on Close button.
JavaFX 2.0 SDK Setup - Complete

A browser will open for you to register your software.
register
In order to verify the setup correct, you have to run "cmd" in Windows.


Update to this step, you cannot run javac except you are in C:\Program Files\Java\jdk1.7.0_02\bin. Because you haven't set PATH.
Update to this step, you cannot run javac except you are in C:\Program Files\Java\jdk1.7.0_02\bin

To setup path, follow the steps:

search "Environment Variables" in "Settings", click "Edit the system environment variables".

Click "Environment Variables".

Select System variables of Path, and click Edit...

Add the location of the bin folder of the JDK installation, in my case it is "D:\Program Files\Java\jdk1.7.0_11\bin".

Now, you can close and re-open Command Prompt window, type java and javac to varify your setting.