怎么把exe文件转换成.jar文件? [英] how to convert exe file to .jar file?

查看:1035
本文介绍了怎么把exe文件转换成.jar文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何将Java exe提取到jar中

Possible Duplicate:
How can I extract java exe to jar

是否可以将exe转换为jar文件?例如,我有一个用Java首先编写的exe文件,然后我转换为jar文件,然后转换为exe文件.我可以将其转换回jar文件吗?我知道可以将Java程序制作为exe,并且有将jar文件转换为exe的工具,但是可以转换回来吗? 我搜索了许多网站,但还没有找到答案.有没有可能?有谁知道一种将EXE文件转换为JAR文件的程序,我知道有很多相反的事情.

Is there a way to convert exe to jar file? for example i have an exe file that was written with java first, then i convert to jar file then exe file. Can i convert it back to jar file? I understand that java programs can be made into an exe and there are tools to convert jar files to exe but is it possible to convert back? I searched many sites but couldn't come up with the answer yet. Is it impossible or not? Does any one know a program to covert EXE files to JAR files, I know there are a lot to do the opposite.

推荐答案

您无法对其进行转换",可以尝试提取其中的JAR文件,但是:

You cannot "convert" it, you can try to extract the JAR file which is inside, but:

  1. 某些Java到EXE打包程序实际上并未将JAR文件嵌入到EXE文件中,例如,他们嵌入了.class文件或使用其他技术;
  2. 一些Java-to-EXE打包程序试图通过使JAR和/或.class文件恢复困难来保护"开发人员的知识产权.
  3. 一些Java-to-EXE 编译器确实将代码编译为可执行文件.所以没有运气.
  1. some Java-to-EXE packagers don't actually embed JAR files into EXE files, but for example they embed .class files or use other techniques;
  2. some Java-to-EXE packagers try to 'protect' the intellectual property of the developer by making it difficult to recover the JAR and/or the .class files.
  3. some Java-to-EXE compilers do actually compile the code into an executable. So no luck.

我将开始使用EXE资源检查器,例如资源黑客.我必须通知您,从您未创建的可执行文件中提取资源可能是非法的,具体取决于所发布的许可证.

I'd start using an EXE Resource Inspector, like Resource Hacker. I have to inform you that extracting resouces from an executable you didn't create yourself may be illegal, depending on the license it is released with.

这篇关于怎么把exe文件转换成.jar文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆