本文介绍了使用build.xml从.jar文件创建.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用某些脚本(build.xml)从jar文件创建exe。目前我使用构建文件来创建jar,然后使用Launch4J创建exe。现在我想通过脚本编写应用程序的exe。我想知道是否有可能。

Is it possible to create an exe from the jar file using some script (build.xml). Currently I use a build file to create a jar and then create exe with Launch4J. Now I would like to make an exe of the application via a script. I would like to know if it is possible.

推荐答案

你应该提高你的研究技巧。我花了2秒钟才找到Launch4j文档的一部分,其中解释了特殊的 launch4j Ant任务。请看这里:

You should enhance your research skills. It took me 2 seconds to find the part of the Launch4j documentation, where the special launch4j Ant task is explained. Look here: http://launch4j.sourceforge.net/docs.html#Ant_task

所以是的,这是可能的。您可以将Ant用于该特殊任务,并将其记录下来。

So yes, it is possible. You can use Ant with that special task and it is documented.

这篇关于使用build.xml从.jar文件创建.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 14:02