问题
I am looking for a translator for translate Java ByteCode to Machine Native Code before execution to improve performance.
I heard that OpenOffice is made with JAVA, but I can't see any jar file in his installation folder, therefore, maybe there is a translator but I can't find it.
Does anyone know some tool or comercial product to do that?
Thanks!
回答1:
There are multiple solutions. All are not ideal.
Take a look here (exe4j). To learn more read this article.
回答2:
Give a look to Avian JVM. See my reply here to this question for pointers on how to embed it and what class libraries you can use to generate your stand-alone executable.
if you just need a managed language/platform, you can also use .NET/Mono AOT. See the mkbundle tool included with Mono 2.x.
来源:https://stackoverflow.com/questions/8167479/how-translate-bytecode-to-machine-native-code