Choose Language

Sunday 4 November 2012

2. Installing Java and Setting Path



Download and Install Java 1.6

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. Whereas Java SE means Java Software Environment.

Step1 : Go to Google search with the keyword "Java SE 6 download" 

Step 2 : Here You can find the search containing the following link
www.oracle.com/technetwork/java/javase/downloads/index.html

Step 3: 



Click the above highlighted found in the site download and install it. I hope windows Users familiar with clicking next next. same procedure if you're wish to read the license agreement and its your wish.

Step 4: Setting Path

After installing java in "c:\Program Files\Java", the path has to be set.

Go to "Start->(Right Click)My Computer->Properties->(click Advanced System Setting for Windows 7 users)-> click the Environmental Variables->

In the "user variables" click the New



Add variable Name as "Path" and Variable Value as 

without quotes "C:\Program Files\Java\jdk1.6.0_17\bin;"

If you want to cross check you better go to the java installed location and inside it there will be a bin directory, you better copy the path and paste it on the variable value and you should add semicolon (;) at the end of the variable value after adding as show in the above example.


To cross check whether you made things perfectly, you better open your command prompt and enter the following command

1. java, there will will be list of command appearing don't get panic, it shows that you made things perfect

2. javac, there will be list of command appearing don't get panic, it shows that you made things perfect

If you got the following then there is a problem with your path.

" 'Java' is not recognized as an internal or external command,
operable program or batch file. then you have not set your path correctly.
"

Well, Lets start with our fun in Java programming in the following posts after covering its features and its version . . . 

0 comments:

Post a Comment

Trending Now. . .

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by RANDJITH | Bloggerized by Randjith - Subscribe to Learn in Tamil | coupon codes