如何从jar文件制作.exe文件 [英] How can i Make an .exe file from jar file

查看:88
本文介绍了如何从jar文件制作.exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用jdk 6开发了一个系统.然后,我想将该系统部署到所有类型的用户(Windows,Linux).我也想创造. exe文件安装在客户端计算机内部.此过程应检查客户端计算机内部是否存在java(兼容版本).如果机器内部没有Java,则安装过程应提供安装工具,并且用于安装该工具的软件应免费提供. 预先感谢.

I developed a system using jdk 6. then i want to deploy that system to all kind of users(windows, linux). and also i want to create . exe file to install inside the client machine. this process should check whether there exists java(compatible version) inside the client machine. if there is not java inside the machine then installation process should provides facility to install it.and also software used to do that should be freely available. thanks in advance.

推荐答案

请尝试使用NSIS( http://nsis .sourceforge.net/Main_Page ).基本上,您将需要编写NSIS脚本来执行以下操作

Please try using NSIS (http://nsis.sourceforge.net/Main_Page). Basically you will need to write a NSIS script to do the following

  1. 检查JAVA是否存在. [取决于32或64位计算机,您需要检查其他节点]
  2. 获取Java路径
  3. 运行命令java -jar XXXX

NSIS网站上有许多示例脚本.让我知道您是否需要更多帮助.我将向您发送示例脚本.

There are many sample scripts available on NSIS site. Let me know if you need more help. I will send you sample script.

这篇关于如何从jar文件制作.exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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