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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
This question already has answers here:
Closed 6 years ago.
回答1:
GNU Compiler for the Java can be found at http://gcc.gnu.org/install/binaries.html
And you may try the following tools:
- JET: http://www.excelsior-usa.com/jet.html
- Exe4j: http://www.ej-technologies.com/products/exe4j/overview.html
回答2:
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.