Vous êtes sur la page 1sur 10

JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.

html

Wednesday, May 23, 2012

How to install JDK 1.7.0 and how to set path and classpath variables

JDK 1.7
How to Install
Java Development Kit (JDK) 1.7 or SE 7, which is freely available from Sun Microsystems (now part of
Oracle), is needed for writing Java programs.

JDK can be downloaded from the Java mother site @ http://java.sun.com


(or) http://www.oracle.com/technetwork/java/index.html).

How To Install JDK 1.7.0

JDK or JRE?

JRE (Java Runtime Environment) is needed for running Java programs.

JDK (Java Development Kit), which includes JRE plus the development tools (such as compiler and
debugger), is need for writing Java programs.

Since you are supposed to write Java Programs, install JDK (which includes JRE).

STEP 0: Un-install Older Version of JDK/JRE

If you have previously installed older version of JDK/JRE, un-install them.

Run "Control Panel" "Program and Features" Un-install programs such as "Java SE Development Kit" and "Java SE
Runtime". (If you are not sure whether you have older versions of JDK, check!)

STEP 1: Download JDK

1. Goto Java SE download site @ http://www.oracle.com/technetwork/java/javase/downloads


/index.html.
2. Click the "Download" button under "JDK" of "Java SE 7".
3. Choose your operating platform, e.g., Windows x86 (for 32-bit Windows OS - "jdk-7u2-windows-
i586.exe" 84MB); or Windows x64 (for 64-bit Windows OS).

STEP 2: Install JDK/JRE

Run the downloaded installer, which installs both the JDK (Java Development Kit) and JRE (Java
Runtime). By default, the JDK and JRE will be installed into directories "C:\Program Files\java
\jdk1.7.0" and "C:\Program Files\java\jre7", respectively.

here i am refering to JDK installed directory as <JAVA_HOME>

After downloading JDK 1.7.0,just click on it ,you will get like this ,as shown below

1 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

click on run

click next

click next

2 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

after this window,u will observe like this

you have installed successfully now,click finish.

Now we have to set PATH and CLASS PATH variables inorder to compile or execute java .
These are said to be environment variables.

click My computer ==> properties ==>advanced, following window will be opened like this

3 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

Now click Environment Variables, here variables are divided into two sections

User variables : whenever it is modified the corresponding language only effected.

Ex: Class path , in this example class variables are always for .class values

System variables : whenever it is modified not only a single language, corresponding all languages are
only effected.

Ex:path, here the variable is searching for .exe files

click new button

4 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

variable name = classpath

variable value = C:\Program Files\Java\jdk1.7.0

one more environment variable ,we have to set for Java home directory similar to path and
class path.

click new button

for java home

variable name = java_home

variable value = C:\Program Files\Java\jdk1.7.0.

Now click ok for twice.

now for system variables ,let us set path

click new

variable name = path

variable value = C:\Program Files\Java\jdk1.7.0\bin

IF U WANT TO VERIFY JAVA IS INSTALLED SUCCESSFULLY OR NOT ,JUST GO TO COMMAND PROMT,TYPE


javac if u see java compiling commands like below ,then u have installed it successfully.

5 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

For any clarifications or suggestions ,you can contact me through my mail,or u can
comment here.

Posted by sai kiirran at 5:10 AM +4 Recommend this on Google

31 comments:

Yatan Sahni March 31, 2013 at 8:40 AM


javac is not recognised as an internal or external command,operable program or batch file. and my email id is
sahni.yatan123@gmail.com
Reply

Sneha April 29, 2013 at 11:13 AM


this is super easy.your precise steps and illustration is of great help. thanks a lot!
Reply

Replies

sai kiirran May 16, 2013 at 12:14 AM


Thank you

Reply

Derek May 15, 2013 at 7:51 AM


Thank you so much! This was extremely helpful. Everything was thoroughly explained. I would just caution others that if they are
going to download a newer version of the IDK the path names might be slightly different.
EX:
for me, I wrote ...\jdk1.7.0_21 instead of ...\jdk1.7.0

6 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

Just check the actual folder names with your particular version of the IDK.
Reply

Replies

sai kiirran May 16, 2013 at 12:17 AM


Ok Thank you

Reply

Anwesa Roy June 7, 2013 at 9:05 AM


'javac' is not recognised as an internal or external command,operable program or batch file. Please Help!.
Reply

Bobby yerramsetty September 23, 2013 at 5:51 AM


Nice Tutorial, Excellent Description. Set the Classpath and path in windows 7. step by step in under standable manner. Thank you.
I have already read the Some tutorial of your blog nice description. Up to Know Setting the Class Path and Path in windows 7.
How we can Set the Path and Class Path in Windows 8
Reply

Ram narayan Sah March 28, 2014 at 10:25 PM

Reply

Geo Marian July 7, 2014 at 11:31 AM


not working for Windows 8
visit www.geomarian.blogspot.in for Android Tips
Reply

john son August 12, 2014 at 12:34 AM


Wonderful blog & good post.Its really helpful for me, awaiting for more new post. Keep Blogging!..Thanks for sharing this
wonderful blog..

JAVA J2EE Training in Chennai


Reply

savitha singh September 1, 2014 at 4:37 AM


Thanks for your article " how to install JDK". It helped me lot.JAVA Training in Chennai
Reply

sai babu Sai September 13, 2014 at 12:28 AM


Thanks a lot .
Reply

John Dudley October 20, 2014 at 3:20 AM


We are a leading software company dwarka,India which works as per the client requirements and give provide software.
Reply

Jitendra singh June 4, 2015 at 5:44 AM


thank you very most important post
Website Development in india
Reply

waheatha June 8, 2015 at 4:35 AM

7 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

Reply

waheatha June 8, 2015 at 4:36 AM


nice info tanku for sharing it web designing course chennai
Reply

Andrew Son August 11, 2015 at 1:25 AM


There are lots of information about latest technology and how to get trained in them, like Hadoop Training Chennai have spread
around the web, butthis is a unique one according to me. The strategy you have updated here will make me to get trained in
futuretechnologies(Hadoop Training in Chennai). By the wayyou are running a great blog. Thanks for sharing this.
Reply

kovalan Jayamurugan August 30, 2015 at 11:11 PM


Thanks for sharing your informative article on Hive ODBC Driver. Your article is very descriptive and assists me to learn whole
concept in detail. Hadoop Training in Chennai
Reply

Roshini RS September 16, 2015 at 4:30 AM


This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading
your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic.
Regards,
Informatica training center in Chennai|Informatica training chennai|Informatica course in Chennai
Reply

Pooja Doss September 30, 2015 at 12:41 AM


Oracle DBA Training in Chennai
Thanks for sharing this informative blog. I did Oracle DBA Certification in Greens Technology at Adyar. This is really useful for
me to make a bright career..
Reply

Pooja Doss September 30, 2015 at 12:41 AM


Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact
thing clearly, but its no need to do it, because you have explained the concepts very well. It was crystal clear, keep sharing..
Websphere Training in Chennai
Reply

Pooja Doss September 30, 2015 at 12:42 AM


Data warehousing Training in Chennai
I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep
updates regularly..
Reply

Pooja Doss September 30, 2015 at 12:42 AM


Selenium Training in Chennai
Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..
Reply

Pooja Doss September 30, 2015 at 12:42 AM


Oracle Training in chennai
Thanks for sharing such a great information..Its really nice and informative..
Reply

8 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

Pooja Doss September 30, 2015 at 12:42 AM


SAP Training in Chennai
This post is really nice and informative. The explanation given is really comprehensive and informative..
Reply

Pooja Doss September 30, 2015 at 12:43 AM


This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading
your post,thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic
Android Training In Chennai In Chennai
Reply

Pooja Doss September 30, 2015 at 12:43 AM


Pretty article! I found some useful information in your blog, it was awesome to read,thanks for sharing this great content to my
vision, keep sharing..
Unix Training In Chennai
Reply

Pooja Doss September 30, 2015 at 12:43 AM


I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep
sharing..
SalesForce Training in Chennai
Reply

Pooja Doss September 30, 2015 at 12:44 AM


There are lots of information about latest technology and how to get trained in them, like Best Hadoop Training In Chennai
Chennai have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me
to get trained in future technologies Hadoop Training in Chennai By the way you are running a great blog. Thanks for sharing this
blogs..
Reply

Nilesh Makani October 4, 2015 at 11:28 PM


Guide about installation java development kit and any other info How performance of Java enterprise apps can be enhanced?
Reply

Nilesh Makani October 5, 2015 at 2:22 AM


This Post inform about Installation JDK kit any other Java info. visit Enterprises taking Java application development seriously-
But why?
Reply

Comment as:

Publish Notify me

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Popular Posts

9 of 10 10/6/2015 9:27 AM
JAVA: How to install JDK 1.7.0 and how to set path and classpath variables http://corejavaforyou.blogspot.in/2012/05/how-to-install-jdk-170.html

How to install JDK 1.7.0 and how to set path and classpath variables
JDK 1.7 How to Install Java Development Kit (JDK) 1.7 or SE 7, which is freely available from Sun Microsystems (now part of O...

Java Object type casting


Java Object type casting Converting object reference of one type to another type is called Java object typecasting. Casting is a pro...

A sample Java program


Whenever we are writing JAVA program, it is better to write methods (nothing but functions in C (or ) Member functions in C++ )
inside t...

SOFTWARE AND ITS CLASSIFICATION


By using a programming language,we can able to create statements. Statement - It is one type of instruction, which is instructing the
c...

About TOKENS
what is a token? A token is nothing but smallest part of the program or individual part of the statement Without tokens ,statement is
no...

what is encapsulation in java programming


Encapsulation is one of the four fundamental OOP concepts. The other three are inheritance, polymorphism, ...

Structure of c,c++ and java languages


Is Java ,purely object oriented OR not? It is Partially object oriented ,object oriented means every thing should be in terms of objects...

welcome to java world


Java software developed by SUN (Stanford university network ) Micro systems The Creator of java language is James Gosling . The
m...

CORE JAVA INTERVIEW QUESTIONS AND ANSWERS


1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independe...

Introduction to language
Let us discuss .............What is a language? Language is used for communication purpose, if language is not available, communication
i...

Followers

with Google Friend Connect

Members (4)

Already a member? Sign in

About Me Blog Archive

sai kiirran 2012 (16)


36
August (1)
View my complete profile July (1)
June (5)
May (9)
welcome to hello word program
Most beautiful concep in java..oops
How to install JDK 1.7.0 and how to set path and c...
About TOKENS
Structure of c,c++ and java languages
COMPARING JAVA WITH OTHER TECHNOLGIES
SOFTWARE AND ITS CLASSIFICATION
Introduction to language
welcome to java world

10 of 10 10/6/2015 9:27 AM

Vous aimerez peut-être aussi