Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is GNU's Java Compiler (GCJ) dead? [closed]

Tags:

java

gcj

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.

like image 960
Alon Gubkin Avatar asked Oct 27 '10 16:10

Alon Gubkin


People also ask

Why is Java compiler not working?

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.

Can GCC run Java?

GCJ can compile Java source files to native code or to Java bytecode and can also compile Java bytecode to native code.


1 Answers

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.

like image 194
mikerobi Avatar answered Sep 25 '22 12:09

mikerobi