简体   繁体   English

eclipse在它创建的可运行jar文件中不包括所有lib文件

[英]eclipse is not including all lib files in runnable jar file it creates

When I try to run the jar file creating by eclipse Iv been getting a bunch of errors. 当我尝试运行由eclipse创建的jar文件时,iv出现了很多错误。 I unarchive the jar file and saw it had 3 of the 4 lib files (all external) The lib files are commen2-logging-1.2.jar jason-2.4.jar httpclient.4.5.1.jar httpcore-4.4.4.jar 我取消存档jar文件,并看到它具有4个lib文件中的3个(全部在外部)。这些lib文件是commen2-logging-1.2.jar jason-2.4.jar httpclient.4.5.1.jar httpcore-4.4.4.jar

the one that does not get included is commen2-logging-1.2.jar 没被包含的是commen2-logging-1.2.jar

what I did 1. removed jar files, put them all in same foil,er, added them to project again 2. created a new project 我所做的工作1.删除了jar文件,将它们全部放在同一箔纸中,或者,再次将它们添加到项目中2.创建了一个新项目

you need to export your project as a runnable jar and check the choice "package required librarie into generated jar..." 您需要将项目导出为可运行的jar,并选中“将所需的librarie打包到生成的jar中...”选项。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM