Skip to main content

How to install JDK on Windows 7?

2 replies [Last post]
kevingupta
Offline
Joined: 2010-08-11
Points: 0

Hello,

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

I have set the Variable in USER VARIABLE as:

NAME: PATH
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\QTJava.zip

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.
simpleprogrammer
Offline
Joined: 2010-03-16
Points: 0

You need to set the classpath as well. This is the folder where the compiled java files are located like if you compile javac Myjava.java 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.
http://download.oracle.com/javase/tutorial/essential/environment/paths.html

kevingupta
Offline
Joined: 2010-08-11
Points: 0

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 :)