解开一个.jar存档文件而无需写入磁盘

发布于 2025-02-02 14:26:08 字数 472 浏览 2 评论 0原文

我想从密码保护的存档启动Java应用程序。

我有一个可执行的罐子,可以通过在JRE工作环境中双击来运行它。另外Java -jar runnable.jar工作。 我想实现的是保护此存档密码,并在另一个可执行文件的帮助下启动它,而无需提取存档的内容。如launcher.exe runnable.jar -p Archivep@ssword123

,我们知道java -jar runnable.jar.jar命令命令将JAR加载到JRE环境中。我想对密码保护runnable_protected.jar做同样的事情。我认为可以通过借助jar命令或任何其他实用程序(例如7z 7z)将档案提取到路径中来实现。我想实现的是将罐子加载到内存/JRE中。 (我的代码已经混淆了,这个问题与此问题无关)

是否有建议?

I would like to start a java application from a password protected archive.

I've an executable jar, and I'm able to run it by double clicking in a JRE working environment. Also java -jar runnable.jar works.
What I would like to achieve is making this archive password protected and launching it with the help of another executable without extracting the content of the archive. Something like launcher.exe runnable.jar -p ArchiveP@ssword123

As we know java -jar runnable.jar command loads the jar into jre environment. I would like to do the same for the password protected runnable_Protected.jar. I think it can be achieved by extracting the archive into a path with the help of jar command or any other utility like 7z. What I would like to achieve is loading the jar into the memory/jre only. (My code is already obfuscated, this question is not related to that)

Any suggestion ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文