为基于 Java 的应用程序实施提前编译 (AOT)
我们正在使用 Netbeans/Eclipse 的富客户端平台框架开发一个基于 java 的商业桌面应用程序。 IDE(Netbeans/Eclipse)提供了很好的内置安装程序来打包应用程序。唯一的问题是我们的最终用户可以在部署时看到 jar 文件,并且我们没有足够的知识产权保护,因为逆向工程是可能的。代码混淆可以用来最小化影响,但无法避免。我们正在寻找开源解决方案/产品,它们可以通过直接将应用程序转换为本机代码(类似于 AOT 应该做的事情)来帮助我们缓解问题。
预先感谢您的帮助。
-巴汗
We are in process of developing a commercial desktop based application in java using Rich Client Platform framework from Netbeans/Eclipse. The IDEs (Netbeans/Eclipse) provides nice inbuilt installer for packaging the application. The only problem is our end users can see jar files on deployment and we don't have enough protection of our intellectual property as reverse engineering is possible. Code obfuscation can be used to minimize the impact but can't avoid it. We were searching for open source solutions/products which can help us mitigate our problem by directly converting our application to native code something similar to what AOT is supposed to do.
Thanks in advance for ur help.
-Bhan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这已经在这里讨论过:如何为 Java 程序创建 .exe?
this was already discussed here: How do I create an .exe for a Java program?
您可以将 Eclipse RCP 应用程序转换为真正的 EXE(或 Linux 二进制文件)不包含使用我公司生产的产品的字节码。
一般来说,AOT 编译器必须了解此类动态框架或容器的内部工作原理,特别是其类加载,否则在运行时将需要原始字节码进行一致性检查和可能的 JIT 编译。到目前为止,我们的产品仅“了解”Eclipse RCP 和 Apache Tomcat 类加载器(当然,它始终了解标准类加载器。)
You may transform an Eclipse RCP applications into a real EXE (or Linux binary) containing no bytecode using the product my company makes.
In general, an AOT compiler must be aware of the inner workings of such a dynamic framework or container, specifically its class loading, otherwise the original bytecode will be required at run time for consistency checks and possible JIT compilation. Our product only "knows" about Eclipse RCP and Apache Tomcat classloaders as of now (it always knew about the standard ones of course.)