Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML
 
 
Search All Tutorials
  

 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 
Java
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

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.

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.

 

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.

                         

Facing Programming Problem?
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

8 comments so far (post your own) View All Comments Latest 10 Comments:

In one word to say great

Posted by Praveena on Wednesday, 08.13.08 @ 15:17pm | #72632

I followed all the steps and it went perfectly fine. I ran the 'java -version' command from command line and that gave proper results too.
But when ever i run 'javac' i get the following error,

'javac' is not recognized as an
operable program or batch file.

could u plz tell mecould be the reason?

Posted by me on Tuesday, 04.15.08 @ 23:06pm | #56627

Please download jdk1.6.0 version of java

Posted by Shivali khandkar on Tuesday, 03.11.08 @ 18:03pm | #52304

EXCELLENT STEPS TO SET THE PATH
GREAT JOB.

iT WAS REALLY VERY EASY TO FOLLOW.

Posted by SWAPNA BABU on Sunday, 03.2.08 @ 10:58am | #50917

Now i gradually lern about all this things

Posted by dosapati siva on Thursday, 01.24.08 @ 19:51pm | #46026

what are the diff b/w java n adv java
what is adv java

Posted by sana on Wednesday, 10.17.07 @ 20:25pm | #34294

This information is very helpfull to all the beginners.We always suffers the problems the file is not found/path name is incorrect etc etc..Thanks ones again.

I want to ask one thing that is it free donlodding or not.

Posted by Monika Khatri on Wednesday, 10.3.07 @ 20:51pm | #31321

Thank you thank you - you have helped me tremendously - I have been struggling with paths and trying this and that .....and I did it with ease from your instructions. Will be back .....Thanks

Posted by Zoe on Saturday, 06.23.07 @ 13:43pm | #20020

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.