Question:
'javac' is not recognized as an internal or external command, operable program or batch file?
2011-08-24 15:19:54 UTC
So I just recently created a Minecraft mod, but they are still in .java files, and I need to compile them into .class in Windows Command Prompt. But when I go to do that, I get:

"'javac' is not recognized as an internal or external command, operable program or batch file?"

My PATH is already: "C:\Program Files\Java\jdk1.6.0_25\bin;"

I do not know what the issue is. My JDK version is 1.6.0_25
Three answers:
Keith C
2011-08-24 15:27:08 UTC
Try running javac with your path before it like: C:\Program Files\Java\jdk1.6.0_25\bin\javac.bin or w.e. If that works, your path should be removed and re-added to your system also, restart. If it doesn't work check the directory and make sure the javac binary is there. If it is there try walking to the path using tab... so.

C:\Pr\J\jdk\b\ja and see if you can get it working like that. Maybe the case sensitivity is giving you issues. If the binary is not there reinstall the JDK and Java runtime(s).
2011-08-24 15:30:53 UTC
I remember having the same problem back in high school.



If you haven't already, restart command prompt, then try again.

Also, try using the full path to the java.exe in your compile command if the above doesn't work.



If you just type javac and you get a list full of options, then there's nothing wrong. If you don't, then it's most likely a path issue and you should provide more information as a comment to your own question so that we can better help you.
florczak
2016-10-16 07:43:46 UTC
examine the itemizing tree of your JDK, there are various places the place it may look like it would desire to be placed, yet no longer unavoidably. look someplace else in the JDK folder shape. only out of interest, the place did you get the JDK at? i've got been finding, yet i haven't chanced on it for a at the same time as. that grow to be formerly Oracle... digital mail me. my old javac.exe is at C:SunSDKjdkbin yet i'm confident it is not any help to you.


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