简体   繁体   English

为什么Eclipse无法从lib文件夹检测到jar文件

[英]why eclipse not detect the jar file from lib folder

I am trying to develop java desktop application using eclipse and using some external jar file in project. 我正在尝试使用Eclipse和在项目中使用一些外部jar文件来开发Java桌面应用程序。

I have put that all jar file in /lib folder (this is desktop application so here /WEB-INF does not exist) now the problem is that the application cannot detect external jar file what is the problem ? 我已经将所有jar文件放在/lib文件夹中(这是桌面应用程序,因此这里/WEB-INF不存在),现在的问题是该应用程序无法检测到外部jar文件是什么问题? and how I can solve this problem? 以及如何解决这个问题?

You need to add external jar file as :- 您需要将外部jar文件添加为:-

  Click Properties > Java Build Path > Libraries.
    Click Add External Jars and browse to the JAR file that contains the look and feel, then click OK. 
Now, you are ready to apply the new Look and Feel to your application.

You have add it to classpath as well. 您也已将其添加到classpath中。 right click on project and click add to build project. 右键单击项目,然后单击添加以构建项目。 click libraries tab and click external jar files. 单击库选项卡,然后单击外部jar文件。 select your jar files. 选择您的jar文件。 It will be added to classpath. 它将被添加到classpath中。

I think you have to inserti it. 我认为您必须插入它。 Rightclick in project properties build path, add external jar and browser to it. 右键单击项目属性构建路径,向其添加外部jar和浏览器。

just put jar file into the libs folder and abb to build path thats it. 只需将jar文件放入libs文件夹并abb即可构建路径。 Updated eclipse not getting jar or configure file from the lib they get jar file from the libs folder. 更新的eclipse不能从lib获取jar或配置文件,而从libs文件夹获取jar文件。

您可以右键单击jar文件,然后选择“ Build Path ,然后选择“ add to build path

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

相关问题 Eclipse jar 导出和lib文件夹 - Eclipse jar export and lib folder 为什么eclipse不能将所有jar文件移动到服务器lib文件夹? - why eclipse does not move all jar files to server lib folder? Eclipse的lib文件夹中的jar文件的蓝色问号 - blue question mark for jar file in the lib folder in eclipse Java从jar中读取文件,该文件位于战争的lib文件夹中 - Java read a file from jar which is in lib folder of a war eclipse项目的JAR文件夹 - JAR file folder for eclipse projects 使用 ProGuard 从 lib 文件夹中排除混淆的 jar - Exclude obfuscated jar from lib folder with ProGuard 当我将jar文件复制到Android Studio中的lib文件夹时,为什么会一直说“无法执行重构”? - Why does it keep say “Refactoring cannot be performed” when I copy a jar file into the lib folder in Android Studio? 从命令行调用jar的lib文件夹内的jar的类? - Calling class of a jar inside the lib folder of a jar from command line? 在eclipse中运行tomcat时,不会从WEB-INF / lib中的jar文件加载spring web应用程序上下文 - spring web application context is not loaded from jar file in WEB-INF/lib when running tomcat in eclipse 如何从spring-boot jar BOOT-INF \\ lib文件夹中提取文件 - how to extract a file from spring-boot jar BOOT-INF\lib folder
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM