Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I am having a lot of trouble setting up the jdk classpath in Windows Vista. The following is what I set up:
(copied from the command prompt)
C:\Users\rayray>set classpath
classpath=.;c:\Program Files\Java\jdk1.6.0_02\bin(copied from the explorer address bar)
C:\Program Files\Java\jdk1.6.0_02\binBut the javac command is still not working.
What am I doing wrong? Many thanks in advance.

Not working? Do you mean it is not found?
That directory needs to be in PATH, not CLASSPATH.
You should need nothing in CLASSPATH to run a simple compile.

This is what I get when I type javac at the command prompt:
'javac' is not recognized as an internal or external command,
operable program or batch file.Are you saying that I should change the name of the classpath variable to path?

You really want to _add_ it to the existing PATH. Permanently.
Frankly, I know not how you do that in Vista.
In XP, bring up my computer, get into properties, find "environment variables".
One of them will be PATH.
Add that directory to the existing set of directories there, separated by semi-colon.
Can someone else with a Vista box describe this?
Guy

Hi to set the the variables in vista:
Control panel(classic view)--> system --> click on "Advanced system settings" in the left tasks, Envirnoment Variables will appear.
Please tell me if it works with u after adding bin to PATH cause I got errors too!
Alia

Hi
it works pretty well ... i use vista(premium) .... i set the variable for java
Control panel(classic view)--> system --> click on "Advanced system settings" ... select the PATH and >>> Edit >> then add your path to the PATH variable.... normally .. C:\Program Files\Java\jdk1.6.0_(version)\bin .... it's ok on my systemgood luck
sha-k

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |