在Eclipse中将maven项目文件转化为exe文件

1、导出jar文件
(1)、在eclipse中选择要导出的项目,右击打开菜单,选择Export;
(2)、在弹出对话框中,选择Java/Runnable JAR file,单击Next;
(3)、在Runable JAR File Export对话框
在Export destination项选择目录,并输入目标文件名称,譬如C:\huguofeng\demp.jar;
在Launch configuration项选择入库类,譬如MainApp-demo;
在Library handling项根据需要选择,譬如选择Copy required libraries into a sub-folder next to the generated JAR,将库文件和jar文件分开。
2、将jar文件转化成exe文件(采用exe4j工具)
(1)、打开exe4j工具进入welcome页面,单击Next;
(2)、在Project type页面,选择Regular mode,单击Next;
(3)、在Configure application页面,选择Distribution source directory和Executable directory,并输入Short name of your application,单击Next;
(4)、在Configure executable页面,输入Executable name,对于32bit PC,单击Next;对于64Bit PC,选择Advanced Options/32bit or 64 bit,在Select the architecture of the generated executable中选择Generate 64-bit executable,单击Next;
(5)、在Configure Java invocation页面,添加Class path和Main class,单击Next;
(6)、在Configure JRE页面,输入Mininum version,譬如1.8,单击Next;
(7)、一直单击Next,生成exe文件;
(8)、在exe4j has finished页面,单击Click Here to Start the Application打开生成的exe文件,检查是否正常操作。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大浪淘沙胡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值