解开一个.jar存档文件而无需写入磁盘
我想从密码保护的存档启动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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论