I have a problem involving setting up Java.
I have installed the JRE, added its path to PATH
, and set JAVA_HOME
and CLASSPATH
. Now, java
and javacpl
work fine, but running javac
generates a command-not-found error. Furthermore, javac.exe
does not even seem to exist in the JRE's bin
folder.
How do I run javac
?
The JRE is merely the Java Runtime Environment, which includes only the infrastructure needed to run Java programs that are already compiled.
To compile Java source code using javac
, you need the Java Development Kit (JDK).
On Oracle's Java download page, choose the package labelled "JDK".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With