Question:
'javac' is not recognized as an internal or external command, operable program or batch file?
anonymous man
2010-09-08 19:40:16 UTC
I was following this Java turtorial thingy and I needed to add javac.exe to the path file but when I did I got an error "'javac' is not recognized as an internal or external command, operable program or batch file" when I tried to do "javac.exe -version" in the cmd prompt

I set my path to PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_21\bin\

and it doesn't work. This is what I was told through the book and what I found online;

I downloaded the latest JDK and Java, would I have to download the JRE too? I looked in the bin folder and I found the javac.exe file so I'm not sure why it won't work.
Three answers:
cpcii
2010-09-08 19:45:29 UTC
Have you checked that that path exists on your computer and the javac is in that directory? If that's in the book it might not be the same if you have used a new version of Java.

Mine is in a different place so check to make sure yours is in the right place.
Jim
2010-09-08 19:50:36 UTC
check the directory tree of your JDK, there are several places where it may LOOK like it could be located, but not necessarily. look somewhere else within the JDK folder structure.



just out of curiosity, where did you get the JDK at? I've been searching, but I haven't found it for a while. that was before Oracle...

email me.



my old javac.exe is at C:\Sun\SDK\jdk\bin\ but I am sure that is no help to you.
Sam Adams
2010-09-08 19:49:34 UTC
You do need to have the latest JRE installed to run Java programs. I think you might also need to set your System Variable ClassPath to C:\Program Files\Java\jre6\lib\ext\QT... Of course,this will require the latest jre to be installed.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...