posted 17 years ago
after you set the path, you have to open a new command window. If you have one already open, it won't pick up the changes.
type only the word "path" on the command line, and that will show you what THAT session thinks the path is.
something else to try is to navigate to the directory where you think java is, and see if you can run the javac command from there...
i.e. here's my path:
I:\>path
PATH=C:\Perl\site\bin;C:\Perl\bin;C:\PROGRA~1\REFLEC~1;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\WINDOWS\Downloaded Program Files;C:\Program Files\Altiris\Software Virtualization Agent\;C:\oracle\ora81\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Program Files\iPath\Bin;C:\MySQL\bin;C:\Program Files\Java\jdk1.6.0_11\bin;C:\Program Files\QuickTime\QTSystem\
so, I went to my jdk directory:
c:
cd "Program Files\Java\jdk1.6.0_11\bin"
and then I ran javac. if you can run it from there, then you know it's installed, and you have a path problem. if it DOESN'T run from there, it's either a) not installed, or b) it's installed somewhere else.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors