简体   繁体   中英

Eclipse Jar Build Path

I have looked over articles and forum posts about this; making a lib and adding it to your build path. Well, I did this exactly. I have a libs folder and from that, I tried to ways. I selected them, right clicked, went to build path, and added them. It moved them to a library. I also tried to right click the project, go to properties, go to build path, libraries, add jar, and selected it from my libs folder. However, when I run it, it still doesn't find the jar, what did I do wrong here?

Step 1: Select Jar Files in Lib Folder > Right Click > Build Path > Add

Step 2: Select Project > Right Click > Properties > Build Path > Libraries > Add Jars > Select and add the jars.

If the JAR files are showing up under Referenced Libraries, then Eclipse should be including them in the build path. I would make sure that 1) the JAR file has the file you think it does in it, and 2) that the JAR doesn't have any native libraries that you need (which would prevent it from working).

try to right click the project, go to properties, go to build path.

them remove the existing JRE System library

finaly add new lybrary, JRE System library

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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