how to add. JAR in my project? [duplicate]

霸气de小男生 提交于 2019-12-13 00:56:16

问题


Possible Duplicate:
Adding a library/JAR to an Eclipse Android project

I found an interesting project to me, Wanted to use his library but I can not add to my library, as in the example

I do it in eclipse

I can not add. Jar in my library


回答1:


Right click your project, select Build Path -> Configure Build Path.... On the Libraries tab you can add the library.

If the JAR is contained in a project folder select Add JARs.... If you want to add it from the file system select Add External JARs.




回答2:


Right click on project Build path is displayed, take mouse over build path other option is displayed then click on configure build path

A new windows open check libraries is displayed at top navigation

Click on the libraries

Click on add External jar button

Browser your jar file

Add the file from the system.




回答3:


As Piotr said, I didn't understand the problem. However, here is how you can add a jar file in eclipse.

  • Right-click on your project Build path -> Configure Build Path...

  • Select Library tab There you can see on the right-hand side, Add
    JARs... or Add External JARs...

Select what do you want.




回答4:


Copy the jars and paste them into your lib directory for web applications

lib location :

YourProject
    --WebContent
       ---WEB-INF
             ---lib


来源:https://stackoverflow.com/questions/13564208/how-to-add-jar-in-my-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!