使用exe文件保护Jar文件源代码(Java)
当我将另一个文件创建为 .EXE
时,如何打开 .JAR
文件?
我尝试了很多东西,但它们不起作用。
我希望这是保护我的源代码的另一种方式。有点像《我的世界》的做法。您打开 .EXE
,然后 .EXE
以某种方式打开 .JAR
文件。
有人有什么想法吗?
How would I make a .JAR
file open up when I make another file as .EXE
?
I have tried many things, but they don't work.
I want this for another way to protect my source code. Kind of like what Minecraft does. You open a .EXE
, and somehow the .EXE
opens up the .JAR
file.
Anyone have any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要转换为 exe,我使用 JAR2EXE。
然而,混淆代码可能会阻止想要访问您代码的人。但有决心的人仍然会访问它。您可以使用 proguard 来混淆您的代码。\
ProGuard
To convert to exe, I use JAR2EXE.
However obfuscating your code can deter people who want to access your code. But a determined person would still access it. You can use proguard to obfuscate your code.\
ProGuard
你想要这样的东西:
-> http://en.wikipedia.org/wiki/Obfuscated_code
您可以访问 MineCraft.jar,但是代码被混淆了。
You want something like this:
-> http://en.wikipedia.org/wiki/Obfuscated_code
You can access the MineCraft.jar but the code is obfuscated.