Creating jar executable w/ external jar (JXL) in ECLIPSE java

梦想的初衷 提交于 2019-12-23 20:22:33

问题


I can't find a working solution for my jar executable. The program runs perfect in my Eclipse IDE, but when I attempt to follow Eclipse instructions, the executable does not work with external JAR.

The JXL jar is in my build path. Anyone know how to get this working through Eclipse? I do not have access to command line.


回答1:


1.) Right-click on project, select pop-up menu entry "Export...".

2.) Select "Java -> Runnable JAR file".

3.) Choose a working launch configuration for running your program via java -jar MyExecutable.jar from the command line later. Select an output folder and file name. Select "Package required libraries into generated JAR".



来源:https://stackoverflow.com/questions/26744783/creating-jar-executable-w-external-jar-jxl-in-eclipse-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!