使用exe文件保护Jar文件源代码(Java)

发布于 2024-12-07 20:46:29 字数 222 浏览 5 评论 0原文

当我将另一个文件创建为 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你怎么这么可爱啊 2024-12-14 20:46:29

要转换为 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

单调的奢华 2024-12-14 20:46:29

你想要这样的东西:

-> 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文