Skip to main content

How to install JDK on Windows 7?

2 replies [Last post]
Joined: 2010-08-11


I tried to install latest JDK version: jdk1.6.0_21 on my windows 7...

I have set the Variable in USER VARIABLE as:

Value: C:\Program Files\Java\jdk1.6.0_21\bin

Now, When I went to the CMD and typed "set" it showed me

CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\

Now, I am not sure what to do after this? Am I on the right track or doing something wrong?

I really want to be able to install this ASAP so I can start using/learning JAVA Programming from very basic.

Please let me know :)

Thank You

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-03-16

You need to set the classpath as well. This is the folder where the compiled java files are located like if you compile javac then the class file of it Myjava.class will be created in a folder. Give the location of where the class files can be found using the set classpath command or using how you set your path command.

Joined: 2010-08-11

Instead of using Netbeans I want to use this command prompt to be able to learn java.

I want to type all my codes in this CMD thing and be able to store and view all the files from this cmd / folder.

So, waiting for your response :)