Step 1, Installing Java (Skip to step 3 if you already have Java Installed)
First find what bit operating system you have on your computer by going to the Control Panel. Then Click on System and Security, then System. ("Control Panel\System and Security\System")
Then look at the System type and you will see if you have a 32 bit Operating system or a 64 bit system.
Step 2 Downloading Java
Go to : http://www.java.com/en/download/manual.jsp
Download Windows offline if you have 32 Bit system:
Download Windows offline(64-bit) if you have 62 Bit system
Then Run the installer
Step 3 Finding out what Bit of java you have (Skip to Step 4 If you know what bit of java you are using.)
First open CMD ((Windows Key) + r =run then type in cmd)
next type in "java -d64 -version"
if you get a Error message you have 32-bit java.
if you get a list of java versions you have 64-bit java.
Step 4 Downloading the JDK
Go to : http://www.oracle.com/technetwork/java/javase/downloads/index.html
Then Click on the download button for Java Platform (JDK)
Go down to the box that says Java SE Development Kit
accept the Oracle Binary Code License Agreement for Java SE
Click on the download link for windows x86 if you have 32-bit java
Click on the download link for windows x64 if you have 64-bit java
Then run the installer
Step 5 Setting up the JDK
Once you have Java and the JDK installed
Go to to the Control Panel. Then Click on System and Security, then System. ("Control Panel\System and Security\System")
Under Control Panel Home on the left click Advance System Settings
Next go the the advance tab on the top
Then at the bottom click on Environment Variables ...
Then click New Under variables for (Computer Name)
Type in any variable name (Ex: Path)
Then under variable value type in the location for the bin folder for the jdk (Ex: C:\Program Files\Java\jdk1.8.0_51\bin) (C:\Program Files (x86)\Java\jdk1.8.0_51\bin)
Click ok.
Step 6 Testing the JDK
Open a new instance of cmd ((Windows Key) + r =run then type in cmd)
type "javac -version"
If you get a version of jdk listed, then you successfuly installed the java jdk