eclipse导出可供项目引用的jar

有两种,一种是导出直接可以运行的jar,一种是导出来供其他项目引用的。
在这里,说的是第二种,第一种在我博客上面也有一篇转载的。
1选中项目,选择Export

2选择JAR file 然后Next

3 select the resources to export 里面是选择你要导出的文件。
 在下方选择Export generated class files and resources.

 select the export destination 再选择导出的文件路径   然后Next ,再Next,

在jar Manifest specification 界面,选中use existing manifest from workspace,然后选中你的meta-inf中的MANIFEST.MF文件。
Finish  大功告成

猜你喜欢

转载自www.cnblogs.com/jdw12306/p/9808840.html