在ECLIPSE java中创建带有外部jar(JXL)的jar可执行文件 [英] Creating jar executable w/ external jar (JXL) in ECLIPSE java

查看:326
本文介绍了在ECLIPSE java中创建带有外部jar(JXL)的jar可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到我的jar可执行文件的工作解决方案。该程序在我的Eclipse IDE中运行完美,但是当我尝试遵循Eclipse指令时,可执行文件不能与外部JAR一起使用。

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.

JXL jar在我的构建路径中。任何人都知道如何通过Eclipse工作?我无法访问命令行。

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。)右键单击项目,选择弹出窗口菜单条目导出...。

2。)选择Java - > Runnable JAR文件。

3。)从命令行稍后通过 java -jar MyExecutable.jar 选择运行程序的工作启动配置。选择输出文件夹和文件名。选择将所需的库打包到生成的JAR中。

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".

这篇关于在ECLIPSE java中创建带有外部jar(JXL)的jar可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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