Hi, I've just gotten a new computer and am redownloading all of my required coding software. I've just downloaded the Java SE 8u102 download, and when I go to the command prompt to insure that things are working I receive an error:
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
'javac' is not recognized as an internal or external command,
operable program or batch file.
I was under the assumption that these two items came bundled together? Javac is the compiler, correct? So if one is not working shouldn't they both be working? Sorry if this is a stupid question, tend to have more issues when installing software than I do with actual coding. Thanks for any help!
javac' is not recognized as an internal or external command,
The OS can not find the javac.exe file. You can tell the OS where the javac.exe file is by adding the path to the bin folder where the file is located to the PATH environment variable .
Or you can give the OS the full path on the commandline:
C:\Program Files\Java\jdk1.8.0_60\bin\javac.exe -cp . -Xlint -Xdiags:verbose Fractions.java
This wiki has all the information you need to setup your environment.
All things are lawful, but not all things are profitable.
posted 3 years ago
I've tried following the path setup settings and it is giving me the same result; I tried that solution before posting (just tried it again for the sake of it). I can clearly see the javac.exe file in the bin folder..? Is there any other reason this wouldn't be working? It also can correctly access the java.exe file so I'm confused since they are in the same folder location.
posted 3 years ago
*sigh*. Never mind, I've figured it out. Apparently needed to close out command prompt for the change to take effect. Thanks for the help, it is much appreciated.