问题
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.
回答1:
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
So yes, it is possible. You can use Ant with that special task and it is documented.
来源:https://stackoverflow.com/questions/13875587/create-exe-from-jar-file-using-build-xml