[英]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.