Let's make tech simpler

Posts tagged ‘java installation’

Steps to Install Java

Technology Version

Sr. No

Technology/Environment

Version

1

JDK

6.0.31

2

Windows

7

Steps to follow

Java Installation Steps

Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and press download button to download the Java SE 6 Update 39.

 

image

Accept License agreement and click on Windows x64 executable.

image

Download Windows-64 bit version.

 

Run the executable

SNAGHTMLd933588

Press Next

Observe that JDK will be installed in C:\Program Files\Java\jdk1.6.0_39\

SNAGHTMLd93d291

Press Next

SNAGHTMLd9629c5

 

Press Next

SNAGHTMLd96c22d

 

SNAGHTMLd973ad5

Press Finish. You will be transferred to oracle.com for creating a account. You can create if you want but it’s not necessary.

 

Verification

Verify that JDK is installed. 

image

JDK installation is complete.

 

Java Verification Steps

Verify that Java is installed in your system. Go to start and type cmd.exe and press enter.

Change directory to C:\Program Files\Java\jdk1.6.0_39\bin by using following commands.

cd C:\Program Files\Java\jdk1.6.0_39\bin

 

image

Set JAVA_HOME and PATH variables

For Java Development, Most of the tools require JAVA_HOME and PATH variables.

What is PATH variable?  The PATH environment variable on your computer designates which directories the computer searches when looking for applications, such as the applications that enable you to compile and run your Java applications (called javac.exe and java.exe on windows).

 

For Windows 7, follow next steps to set path variable:-

Go to Start-> Right click on Computer icon-> Select Properties

clip_image020

Select Advanced System Settings menu from the left.

Click on advanced tab

clip_image022

Press Environment Variables

Click on Environment Variables. Add JAVA_HOME variable to C:\Program Files\Java\jdk1.6.0_39 

SNAGHTMLd9c3901

Update path variable so that windows can find javac/javaw.exe

Now, Search for path variable under System variables.

clip_image026

Click Edit.

Go to the last character, add semicolon and Append %JAVA_HOME%\bin to PATH variable.

clip_image028

Press Ok, Ok and Ok.

 

Updating path variable for %JAVA_HOME%\bin helps operating system to find executables like java.exe, javac.exe from any directory. For example, if you type javac –version from any directory, you would be able to see the version.

Go to command line from start-> cmd.exe

Type javac –version

c:\>javac -version

image

This shows that Operating system is able to find out javac using path variable.

 

 Revision History

Sr. No

Date

Change description

1 Jan 13 Original version
     
Design a site like this with WordPress.com
Get started