Home Java Learn-java-in-a-day Download and Install Java
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Download and Install Java

Advertisement
To compile and run a java program we need to install java platform. JDK (Java Development Kit). JDK is the basic set of tools required to compile and run java programs. This section enables you to download JDK and teaches you the steps to install it.

Download and Install Java

     

To compile and run a java program we need to install java platform. JDK (Java Development Kit). JDK is the basic set of tools required to compile and run java programs. This section enables you to download JDK and teaches you the steps to install it.

New version of JDK is JDK 7, we have developed the tutorial on how to install JDK 7 on windows 7. View the tutorial Installing Java (JDK 7) on Windows 7 Computer Video Tutorial for more information and steps to download and install JDK 7. There are many new features available with the JDK 7, so you should start using JDK 7 for the development and deployment of your next applications.

Download and Install JDK (Java Development Kit)

The latest version of jdk is 6 (update 1) at the time of writing the tutorial. You can download the latest version of jdk from http://java.sun.com/javase/downloads/index.jsp. Once you download the exe file you can now install it. Just follow as mentioned:

To install the jdk, double click on the downloaded exe file (jdk-6u1-windows-i586-p.exe) 

Step 1. Double Click the icon of downloaded exe.

You will see jdk 6 update 1 window as shown below.

Java installer is very easy and you can follow the steps and easily install the Java on your computer. Java installer will ask you the directory for installing the Java. It will display the default Java installation directory and also give you option to browser the other directory in your computer.

Advertisement

After the installation of Java you have to set the path and classpath variables in the system path to use the Java SDK. In this tutorial we will show you how to set these environment variables.

Step 2: Now a "License Agreement" window opens. Just read the agreement and click "Accept" button to accept and go further.

Step 3: Now a "Custom Setup" window  opens. 

Step 4: Click on "Change" button to choose the installation directory. Here it is "C:\Program Files\ Java\jdk1.6.0_01". Now click on "OK" button.

Clicking the "OK" button starts the installation. It is shown in the following figure.

 

Step 5: Next window asks to install Runtime Environment

Click the "Change" button to choose the installation directory of Runtime Environment. We prefer not to change it. So click "OK" button.

Step 6: Click "OK"  button starts the installation.

Step 7: Now "Complete" window appears indicating that installation of jdk 1.6 has completed successfully. Click "Finish" button to exit from  the installation process.

Step 8: The above installation will create two folders "jdk1.6.0_01" and "jre1.6.0_01" in "C:\ Program Files\ java" folder.

Step 9: To make available Java Compiler and Runtime Environment for compiling and running java programs , we set the system environment variables. 

First of all select "My Computer" icon and right click the mouse button. Now click on "system Properties" option. It provides the "System Properties" window , click the 'Advanced' tab. Then Click the "Environment Variables" button. It provides "Environment Variables" window. Now select the path in System variables and click 'Edit' button. The"Edit System Variable" window will open. Add "c:\Program Files\Java\jdk1.6.0_01\bin" to 'variable value' and click 'Ok', 'Ok' and 'Ok' buttons. 

Step 10: Now set the JAVA_HOME variable and set its value to " C:\Program Files\Java\jdk1.6.0_01 ". If this variable has not been declared earlier then create a new system variable by clicking on "New" button and give variable name as "JAVA_HOME" and variable value as " C:\Program Files\Java\jdk1.6.0_01 ". Now click "OK". This variable is used by other applications to find  jdk  installation directory. For example, Tomcat server needs "JAVA_HOME" variable to find the installation directory of jdk.

Step 11: Now this is the final step to check that you have installed jdk successfully and it is working fine. Just go to the command prompt and type javac and hit enter key you will get the screen as shown below :

Now you can create, compile and run java programs. Back to Learn Java in a day tutorial home page.

Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: February 25, 2008

Ask Questions?    Discuss: Download and Install Java   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
ravi kumar
April 11, 2011
oracle

iwant to be a good in oracle apps
Khushveer
April 6, 2011
Java

Please java.exe filer give me
Emjiz
April 13, 2011
javac not recognised

i did the above instructions, wen i check if the javac command works, it ways javac not recognized as an internal or external command.......... any ideas? Blaq-Legend
sohrab
April 14, 2011
Now, i learning of java course

Too good
jirapong
April 19, 2011
install

goog a very program
jirapong
April 19, 2011
install

goog a very program
jirapong
April 19, 2011
install

software
Abhyuday Bose
April 22, 2011
Using Java

Java is very essential in my scope of work. It is required after having downloaded any Govt. e-Tenders through JRE 1.6.
vadlamuralidhar
May 26, 2011
pathsettings

Thanq so much for u r path delaration way .............
Monty singh
June 2, 2011
jdk1.6

why better jdk1.6 than jdk1.5 .
edz guitarist
June 12, 2011
jdk1.6.0

nice programming
deepshikha dutta
June 22, 2011
related to learning java

its a gud site to jst learn java frm a beginner
Ajay
June 26, 2011
Comment

This website really offers basic level Java teaching. It was very helpful. Thank you......
MSL
June 29, 2011
ERROR

Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object what should i do, i followed the steps in installing jdk1.7.0, pls help, thank you
dinesh
July 2, 2011
Install java

I want to install jdk1.6
humanyu
July 18, 2011
learn java

i want to learn java so i need jdk so i wanna download this software
vidya manjunath m m
August 14, 2011
java installation

hi i need to instal
chinna
August 16, 2011
install

it is good to learn very nice
amreen siddiqui
August 21, 2011
java environment

powerful and secure language
ravikumar r
August 27, 2011
java

its very good language
Noam David Pour
August 31, 2011
Java jdk 7 kit

download and install java
K.Rahini
September 1, 2011
wish

Hi really thank u so much to roseindia.... just now i installed java successfully....really very happy yaar:-)but for window7 c is not working....can u help me..:-(
zain
September 2, 2011
java

java
shdaryanani
September 9, 2011
java

java load
sheetal
September 10, 2011
java download

good
jatin yadav
September 15, 2011
jdk

nice
jatin yadav
September 15, 2011
jdk

download
Harish
September 18, 2011
hai

its very good
kk
September 18, 2011
simple

good
chitra
September 19, 2011
java software

i want to download java software.
raghav devedi
September 19, 2011
geting a problem to run javac in command prompt

javac is not recognize as an internal or external command. plz send me the answer as soon as possible
E.Deepthi reddy
October 1, 2011
java

i wont instal java
manish jagotta
October 8, 2011
download java

download java.
manish jagotta
October 8, 2011
download java

download sun java.
praveen
October 10, 2011
java

i like java
mahdi alnahawi
October 10, 2011
download java

no comment
nitin chaurasia
November 11, 2011
java

i want java
Amy
November 12, 2011
java

hi i am new to this program and i am in grade 10. my teacher is teaching us java in computer class but i don't understand him because he is a fob. so can u be my private tutor and help me please. i have failed two tests already :( please
montri
November 14, 2011
mx

thank you
yadati rajesh
November 25, 2011
download

please install the java jdk1.6
sundar
March 18, 2013
java-jdk1.6.0

hi...........thanks for jdk
K.Vikas
December 6, 2011
java install

jdk 1.6.0
sundar
March 18, 2013
java

realy super
sundar
March 18, 2013
java-jdk1.6.0

please download jdk1.6.0 for java
sundar
March 18, 2013
java-jdk1.6.0

this programming is very helpful. So, all of friends download form java-jdk1.6.0.............then, thanks............
sundar
March 18, 2013
java script

read to programming
dasun
December 10, 2011
sinhala

ok
suresh
December 29, 2011
java

i want to java
gaurav
December 30, 2011
java

java is cool
gaurav
December 30, 2011
java

you are great
Amit K. Bansode.
January 3, 2012
for devoloping

Java is the world class language in programing......
muhammad saifuddin
January 8, 2012
Java Installation

Thnx a lot even after java new version your tutorial work like a charm
rachana
January 8, 2012
question

just tell me hoe to take any java setup from your link.. if i clicked on that link then so many versions are there n if i select jdk6 then also there are many options to download so very confused for that which one to take... so plz rpl me and tell the answer and send me latest version of jdk in which i can do practis.. thanks for ur roseindia it is interesting...
G HEMANTH KUMAR
January 13, 2012
goodmorning roseindia

its a privellage to watch roseindia,i am loving it>>>>>>>thankz for providing masterpiece..as an beginner can make use of it...hemanth.gkaarthi
dilsher
January 20, 2012
java

java
noor unisa
January 21, 2012
computers

good...
v
January 29, 2012
d

hai
kiranmayi
January 11, 2013
java installation

Thanks for guiding I have installed successfully.... thank you so much.I would like to learn java as early as possible could you please guide me in this perspective... thanks in advance...
ganga
February 4, 2012
download jdk

download
samar abbas
February 7, 2012
download and install java

download and install java on my pc
jyothi
February 13, 2012
java

please install java language
lyn
February 17, 2012
wew

i hope that u path directly via link to what file ,para hindi mahirap mag download pangit namn
Subham
February 17, 2012
java

donload java
kamalnath
February 27, 2012
java install

no comments
kamalnath
February 27, 2012
java install

super
kamalnath
February 27, 2012
install java

very good program
kamalnath
February 27, 2012
install java

very good program
kamalnath
February 27, 2012
install java

very good program
samar abbas
March 4, 2012
to download java

i wan to download java
Kumaresan.E
March 5, 2012
using in the java software

java run time environment
E.kumaresan
March 5, 2012
java

software
jeevarathinam
March 9, 2012
installng java software

i like this
macky
March 16, 2012
java

very nice program basic
sureshkumar
March 17, 2012
java

this java very important
pramoda
March 19, 2012
java

i want dz s/w
chaudhari jinal
March 31, 2012
java

java is interested sub
Eqbal
April 4, 2012
Java

java the best sofewear
vishal
April 5, 2012
downloading java

thank u
rakesh p parekh
April 30, 2012
java softwere download

thank you
nishkam
June 6, 2012
java install

i like java
jake
June 9, 2012
games

its good
shalini
June 11, 2012
to have a view on installation process

thanks
s.sotheeswaran
June 19, 2012
java

yes good
s.sotheeswaran
June 20, 2012
java

java down load
dhivya
June 23, 2012
jdk 1.6 installation

can any1 clearly tel me hw to install jdk 1.6... i got fedup.. :(((
Umesh
June 24, 2012
required jdk to run java programm

this is best site to discuss technicale problem.
NAGMA
July 3, 2012
java jdk1.6

good
PRINCE
July 5, 2012
download and install java

installing java
prabin
July 6, 2012
java is a highlevel sensitive language

nice softweres
ganesh guptra
July 8, 2012
for installing java software(64-bit)

i want to installing java process
Prithvijeet Saha
July 13, 2012
computer

I want java as apart of my subject
sumit bhargav
July 18, 2012
java core

plz download this..it useful of students.
praveen
July 25, 2012
java

hi.
shalini saini
July 26, 2012
downloading java

software
raj
July 31, 2012
JAVA JRE1.6

JAVA
nandhini
August 1, 2012
download java

superb
keshava
August 3, 2012
java insstallation

no
hosesi mehrpor
August 7, 2012
dameton garm

thank you veri much
Jayant
August 14, 2012
Java

Nice
papu
August 16, 2012
java

important
tapan
September 3, 2012
Java JRE-1.6

thanks
asma himayat
December 27, 2012
java error

Javac is not recognised as internal external command,batch file is the comman message that comes when I try to run or compile any java program pls......... help me out as I have already Installed java as per ur procedure & set the class path.
rajavelp
September 8, 2012
java install

java installation process
rituraj
September 15, 2012
java

thanx
SHARANABASAVARAJ TALIKOTI
September 17, 2012
java

installation
micheal
September 18, 2012
java download

why can't i download java on my computer or phone?
setu
September 21, 2012
java

very good
setu
September 21, 2012
java

good
setu
September 21, 2012
java

very useful
rauf
September 22, 2012
java

i would like to install java
Akash
December 15, 2012
jdk1.6.0_24

java is the best.
AVGR
September 26, 2012
Last fig missing

It is a State of the Art Tutorial for a Layman ith litle brain I GIVE 5 SCORE OUT OF 5 Last mage of command prompt is not loading on how to instal java page ThanQ
raza
October 5, 2012
programming

its very helpful
Samuel Matthew
October 11, 2012
im the best

helo im happy to install java
Shyamal Banerjee
October 11, 2012
javainstall

Java is a first and better software
muthuvel
October 19, 2012
java

easy to understand
pauline
December 3, 2012
jdk

nice
kamatchi
December 3, 2012
downoadind java

iam very happy to see dis site thanks
karthik
April 16, 2013
madurai

i will the work
mohamed
April 15, 2011
dddddddddddddd

gooooood
med
April 15, 2011
nicevery good

cool
duraiv
October 11, 2011
i want java jdk1.7.0

that is nice soft.
shashikant
November 17, 2011
download

Best java1.6.0 for programming
noor
January 21, 2012
computers

nice
shalinisaini
July 26, 2012
downloading java

software
SANTHOSH
September 18, 2012
TO INSTALL THE JAVA JDK1.6 AND DOWNLOAD

give me the full script to instaLL THE java
DMCA.com