As of October 2010, is GNU's Java compiler dead? Are there any active alternatives (especially for compiling Java to native code)?
LLVM solutions would be preferred.
It means that javac.exe executable file, which exists in bin directory of JDK installation folder is not added to PATH environment variable. You need to add JAVA_HOME/bin folder in your machine's PATH to solve this error. You cannot compile and run Java program until your add Java into your system's PATH variable.
GCJ can compile Java source files to native code or to Java bytecode and can also compile Java bytecode to native code.
You could use IKVM and Mono's ahead of time compiler to generate native code.
EDIT
There is an example at the bottom of this page.
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