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.
-
System Requirement
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
-
-
Installation Procedure
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 isC:\Program Files\Java\jdk1.6.0_45\
, If you want to change the path to any other click onChange
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 typecmd
, and run commandsjava -version
andjavac -version
to verify that Java and Java Compiler are correctly installed.
-
7 thoughts on “Java”