You can just download and install JDK and JRE from http://www.oracle.com/technetwork/java/javase/downloads/index.html
After the installation you have to set path for java.
Read more: http://javarevisited.blogspot.com/2013/02/windows-8-set-path-and-classpath-java-windows-7.html#ixzz3OBqyeCAn
After the installation you have to set path for java.
Steps to set JDK Path and Classpath in Windows 7 and Windows 8
Before setting JDK Path, let's first verify Type javac in command prompt in windows 8 and see output, if you get javac is not recognized as an internal or external command, means JDK Path is not set.
1. Confirm that PATH is not set for Java by typing javac in command prompt.
2. Open Control Panel and Select System and Security
3. Select System
4. Select Advanced System Settings
5. Select Environment Variables
6. Select and Edit Path Environment variable
7. Verify Java path by typing javac in command prompt
Step 1 : Open Control Panel in Windows 8
Step 2 : Select System
Step 3 : Select Advanced System Settings in Windows 8
Step 4 : Select Environment Variables
Step 5 : Select and Edit Path Environment variable in Windows 8
Step 6 : Verify Java path by typing javac in command prompt
just type javac command, this time you will see different output which shows various details of java command rather than getting earlier error.You can follow similar process to set Classpath in windows 8 as well. But it’s not a good practice to use CLASSPATH environment variable to run Java application, instead every Java application should use –classpath option to specify classpath. You can also see How Classpath works in Java for more details on Java Classpath.
Now you are ready to write Java code and compile and run them. Why not just try with HelloWorld Java program. By the way to know more about PATH and Classpath, which is essential for Java developers, See following tutorials
Now you are ready to write Java code and compile and run them. Why not just try with HelloWorld Java program. By the way to know more about PATH and Classpath, which is essential for Java developers, See following tutorials
Read more: http://javarevisited.blogspot.com/2013/02/windows-8-set-path-and-classpath-java-windows-7.html#ixzz3OBqyeCAn





