Quick-Start your new Learning with Best Of Hello World
Java is an object-oriented, platform-independent, robust Programming Language. It allows application developers to "write once, run anywhere". Java program is written in .java file and it is compiled by java compiler to bytecode in .class file. This bytecode runs on any JVM (Java Virtual Machine). This document is for Java Setup and Installation on Windows.
To install Java on Windows, machine must have following system configuration. Here the version used is JDK 6u45 x64.
RAM: Minimum 64 MB
DIsk Space: 124 MB
Browsers: Internet Explorer 7.0 and above, Firefox 3.6 and above, Chrome
Below are the steps for Java installation in Windows.
Locate the downloaded Java setup file jdk-6u45-windows-x64.exe on your machine. Double click on the executable to start installation.
Click next, setup displays the Install to: path. The default path is C:\Program Files\Java\jdk1.6.0_45\, If you want to change the path to any other click on Change button. Click next to start installation.
Java installer is installing the java files to the location provided in the previous step.
Once Java installer completed installation, just close the installation window.
To set Environment Variables for Java open the system properties, Environment Variables.
Create (if not exists) JAVA_HOME variable in system properties and provide the Java directory path to it.
Update Path system variable by adding JAVA_HOME variable to it.
Open a new command prompt (WinKey + R) then type cmd, and run commands java -version and javac -version to verify that Java and Java Compiler are correctly installed.