如何打包jar文件而不包含depedency jar库使用eclipse? [英] how to pack jar file without containing depedency jar libraries using eclipse?
问题描述
我做了一些步骤
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屋!