如何打包jar文件而不包含depedency jar库使用eclipse? [英] how to pack jar file without containing depedency jar libraries using eclipse?

查看:162
本文介绍了如何打包jar文件而不包含depedency jar库使用eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要包装jar文件,而不需要使用eclipse IDE包含depedency jar库。我使用这些步骤来打包,但是结果jar文件总是包含jar库。
我做了一些步骤








Jar文件我想打包是jar库不可运行的jar文件



谢谢

解决方案

在eclipse中,当您创建一个jar文件时,选择名为JAR文件的选项,而不是Runnable JAR。当您单击下一步时,您将在每个项目前面带有一个复选框来创建jar文件时需要包含的项目列表。只需不要选择您不想导出的项目(在您的情况下依赖库)。



希望这有帮助。


I want to pack jar file without containing depedency jar libraries using eclipse IDE. I used these steps to pack but the result jar file always contains jar libraries. Some steps I did

Jar file I want to pack is jar library not runable jar file

Thanks

解决方案

In eclipse, when you are creating a jar file, select option named 'JAR file' and not 'Runnable JAR'. When you click on next, you will get a list of items which you need to include while creating your jar file with a check box in front of each item. Just don't select the items you don't want to export (in your case dependent libraries).

Hope this helps.

这篇关于如何打包jar文件而不包含depedency jar库使用eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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