使用jar文件和资源创​​建一个exe [英] Create an exe with jar file AND resources

查看:89
本文介绍了使用jar文件和资源创​​建一个exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法创建一个包含其中的资源文件夹的exe?我正在寻找类似mac的Application bundle package的东西。我还希望能够在资源文件夹中写入和读取文件。

Is there a way to create an exe that includes a resources folder inside it? I am looking for something like mac's Application bundle package things. I also want the ability to write and read from files within the resources folder.

推荐答案

如果你用里面的资源构建jar它,然后您可以使用 launch4j 将其包装为可执行文件(免费!)。

If you build the jar with the resources inside it, then you can use launch4j to wrap it as an executable (for free!).

你仍然需要JRE,否则它会像普通的.exe一样行动。

You'll still need the JRE, but otherwise it will act just like a normal .exe.

这篇关于使用jar文件和资源创​​建一个exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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