不带库就从Eclipse导出可运行的jar [英] Export runnable jars from Eclipse without libraries

查看:79
本文介绍了不带库就从Eclipse导出可运行的jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从一个较大的项目中导出一个单独的可运行类.这个特定的类不依赖于项目库.

I am trying to export an individual runnable class from a larger project. This specific class does not depend on the project libraries.

Export-> Java-> Runnable JAR文件->中,库处理有一些选项可以提取,打包或复制所需的库,但不能简单地忽略它们.

In Export->Java->Runnable JAR file -> Library handling there are options to extract, package or copy the required libraries, but not to simply omit them.

我真的不需要它们,而且在我的情况下,库导出失败.

I really don't need them, moreover the library export fails in my situation.

如何在没有库的情况下将其导出?

How can I export it without libraries?

推荐答案

far jar插件支持此功能

使用 File->导出包含jar的Java项目时,导出->其他->一个罐子导出器,在向导的为胖子选择文件页面中,您可以选择不包括如下库:

When you export a java project containing jars using the File -> Export -> Other -> One Jar Exporter, in the Select files for Fat Jar page of the wizard you can choose not to include the libraries like so :

这样导出的罐子工作正常.

The jar thus exported works fine.

这篇关于不带库就从Eclipse导出可运行的jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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