将 .class 转换为 jar 并将 .class 转换为 exe
如何使用cmd将
- class文件转换为jar文件?
- .class文件转为exe文件?
- jar文件转为exe?
我可以将exe文件转换为jar文件吗?
How do I convert:
- class file to jar file using cmd?
- class file to exe file?
- jar file to exe?
Can I convert exe file to jar file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
类文件到jar文件
file 如果任何文件是目录,则递归处理。清单文件名和存档文件名需要按照“m”和“f”标志的相同顺序指定
指定的。
示例 2:使用现有清单文件“mymanifest”和归档文件
将 jar 文件转换为 .exe 文件
1)JSmooth .exe 包装器
2)JarToExe 1.8
3)执行器
4)高级安装程序
这里详细讨论了将 .class 转换为 .exe
Class files to jar files
file If any file is a directory then it is processed recursively. The manifest file name and the archive file name needs to be specified in the same order the 'm' and 'f' flags are
specified.
Example 2: use an existing manifest file 'mymanifest' and archive
Convert jar files to .exe file
1)JSmooth .exe wrapper
2)JarToExe 1.8
3)Executor
4)Advanced Installer
Convert .class to .exe is discussed in length here
您一定错过了这个。请查看Java Archive (JAR) 文件指南。
并且肯定错过了 Real 的 How to for it 制作 JAR 可执行文件 有多个包装器完成这项工作(将 Jar 转换为 exe,特定于平台)。您只需在 StackOverflow 中搜索 Jar exe
You must have missed this. Please look into Java Archive (JAR) Files Guide.
And surely missed Real's How to for it Make a JAR executable There are multiple wrappers that do this work (converting Jar to exe, platform specific). You just need to search in StackOverflow for Jar exe
要将 .class 文件转换(实际上是打包)为 .jar 文件,请使用 jar 工具。然后,您可以使用 Launch4j、JSmooth 或其他几个软件包(在网络上搜索“jar exe”)。
To convert (actually, package) .class files into .jar files, you use the jar tool. You can then generate a .exe file from the .jar using tools like Launch4j, JSmooth or several other packages (search the web for "jar exe").
如果您使用 Netbeans IDE,那么从 .class 文件创建 .exe 文件不会花费太多时间。在IDE中,创建一个新项目并将您的java程序放入该项目中。现在按照以下步骤操作 -
4.现在从 IDE 的运行菜单中选择 clean 和 build。确保您已将此项目设置为主项目。
If you are using Netbeans IDE, then creating .exe file from .class file won't take much time. In IDE, create a new project and put your java program in this project. Now follow these steps-
4.Now select clean and build from run menu in your IDE. Make sure that you have already set your this project as main project.
使用命令行创建 jar 文件。答案在 http://download.oracle.com/javase/tutorial/deployment /jar/build.html
类到 exe。在 http://www.javacoffeebreak.com/faq/faq0042.html
Jar 中回答EXE文件。回答 http ://viralpatel.net/blogs/2009/02/convert-jar-to-exe-executable-jar-file-to-exe-converting.html
可以将 exe 转换为 jar 文件。但涉及逆向工程来发现 exe 中的内容,提取并用它做任何你想做的事情。在我看来,根本不值得。
Create jar file using command line. Answer in http://download.oracle.com/javase/tutorial/deployment/jar/build.html
Class to exe. Answer in http://www.javacoffeebreak.com/faq/faq0042.html
Jar to exe. Answer in http://viralpatel.net/blogs/2009/02/convert-jar-to-exe-executable-jar-file-to-exe-converting.html
Converting exe to a jar file is possible. But involves reverse engineering to discover what is in the exe, extract and do whatever you want with it. In my opinion, is not worth at all.