10

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
  • 193
  • 1
  • 2
  • 12

2 Answers2

5

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

And you may try the following tools:

zhuwenger
  • 111
  • 4
-1

gcj is a part of gcc.

Although judging by it's support for "some 1.5 additions" it is out of date. Why are you bothering though? You can setup an installer that updates the jre instead.

axle_h
  • 553
  • 1
  • 5
  • 16
  • 1
    What do you mean you can setup an installer that updates the jre instead. – kzolp67 May 03 '13 at 14:16
  • http://launch4j.sourceforge.net/ – axle_h May 03 '13 at 14:19
  • launch4j only wraps the jar in an exe it is still extractable to a normal jar – kzolp67 May 03 '13 at 14:22
  • 2
    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. – axle_h May 03 '13 at 14:42