11

Does anyone know some free AOT Java compiler? I have found just one - http://gcc.gnu.org/java/.

dede
  • 809
  • 3
  • 11
  • 26
  • why would you want to use one? – Amir Afghani Oct 26 '10 at 01:07
  • 3
    Users don't need to install JRE, faster execution, bytecode protection. So why not? – dede Oct 27 '10 at 03:12
  • 4
    Users won't need to install a JRE, but it won't execute faster or protect anything. – Amir Afghani Oct 27 '10 at 18:51
  • 2
    http://www.excelsior-usa.com/articles/java-to-exe.html – dede Oct 27 '10 at 23:48
  • http://stackoverflow.com/questions/5869665/how-to-create-native-binaries-for-your-java-app || http://stackoverflow.com/questions/16360691/compiling-java-into-native-code – Ciro Santilli OurBigBook.com Aug 03 '15 at 21:37
  • as of Java 9 you have the `jaotc` AoT compiler right in the JDK https://stackoverflow.com/q/46579565/995714 https://www.infoworld.com/article/3192105/java/java-9s-aot-compiler-use-at-your-own-risk.html anyway this is more suitable on https://softwarerecs.stackexchange.com/ – phuclv Jan 18 '18 at 17:22

3 Answers3

5

https://www.excelsiorjet.com/

As of now, it fully supports Java SE 8 and the Standard Edition is free (but only supports 32-bit Windows and Linux.)

Dmitry Leskov
  • 3,233
  • 1
  • 20
  • 17
m. m.
  • 51
  • 1
  • 2
2

GCJ , as you've already noted, is probably your best option. If you're looking for something that runs on Windows you'll need to setup a Cygwin or MinGW environment that runs the GCC.

JNC is an old one that may still work, it was built for Java 1.5 and is based on the GCC.

Nathan
  • 1,445
  • 9
  • 20
1

Not sure how finished it is, but this project uses LLVM and can AOT compile Java and .NET

http://vmkit.llvm.org/

Lou Franco
  • 87,846
  • 14
  • 132
  • 192