Protect Jar file source code with exe file (Java) [duplicate]

空扰寡人 提交于 2019-12-11 08:36:53

问题


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?


回答1:


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




回答2:


You want something like this:

-> http://en.wikipedia.org/wiki/Obfuscated_code

You can access the MineCraft.jar but the code is obfuscated.



来源:https://stackoverflow.com/questions/7622419/protect-jar-file-source-code-with-exe-file-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!