command line

I'm trying to set the windows "path" variable to read javac.exe

PATH=

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\MSSQL7\BINN;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\javatools\maven-2.0.6\bin\;C:\Program Files\Java\jdk1.5.0_09\bin

I'm not sure why javac is not being recognised by cmd.exe. Any workaround? Can I use the CLASSPATH instead (somehow)? How?

I also noted that javac.exe is not available within C:\Program Files\Java\jdk1.6.0_01 or its sub-folders. Why is this?

[697 byte] By [J0na] at [2007-11-27 10:49:04]
# 1

Do you actually have a space between the last semicolon ";" and the path to the java bin, as shown in your post. If so, that is probably your problem.

masijade.a at 2007-7-29 11:16:50 > top of Java-index,Java Essentials,New To Java...
# 2

I tried that as well and javac still doesn't execute.

J0na at 2007-7-29 11:16:50 > top of Java-index,Java Essentials,New To Java...
# 3

Ask on a windows forum how to properly set the PATH variable and troubleshoot it there. This is not a Java issue.

masijade.a at 2007-7-29 11:16:50 > top of Java-index,Java Essentials,New To Java...
# 4

the problem is the space in the directory where he installed the JDK.

Either install it in a directory without spaces (preferred) or make sure the directory name is quoted everywhere you use it.

jwentinga at 2007-7-29 11:16:50 > top of Java-index,Java Essentials,New To Java...
# 5

Remember to restart your computer when you modify the 'Path'. Double check where you have installed the JDK/JRE.

Brightness86a at 2007-7-29 11:16:50 > top of Java-index,Java Essentials,New To Java...
# 6

No need to restart the PC, just open another command shell. Changes made to environment variables are not reflected in command shells that are already open.

Herko_ter_Horsta at 2007-7-29 11:16:50 > top of Java-index,Java Essentials,New To Java...