Compiling java into native code?

17,116

GNU Compiler for the Java can be found at http://gcc.gnu.org/install/binaries.html

And you may try the following tools:

Share:
17,116
kzolp67
Author by

kzolp67

Updated on June 06, 2022

Comments

  • kzolp67
    kzolp67 almost 2 years

    I'm trying to find a java compiler that I can use to compile my java code into native binaries on different operating systems. I have heard of the GNU Compiler for Java but I can't seem to find a download for that and I think it's dead anyway. Are there any good up-to-date compilers out there that I can use to compile java code into a .exe and a .app or anything or can you tell me how to get the GNU Compiler for Java.

  • kzolp67
    kzolp67 about 11 years
    What do you mean you can setup an installer that updates the jre instead.
  • axle_h
    axle_h about 11 years
  • kzolp67
    kzolp67 about 11 years
    launch4j only wraps the jar in an exe it is still extractable to a normal jar
  • axle_h
    axle_h about 11 years
    I know, I was stating that something like launch4j would be a better option than native compiling. If you absolutely have to have native code then develop using c++. Java wasn't made for it.