Reputation: 11
I'm have a problem importing a library. I first tried importing it as an external library, which leads to this:
...afterwards, I searched StackOverflow, created a folder named /libs, and copied the JAR there, but it still doesn't work:
Any pointers?
Thanks you!
Upvotes: 0
Views: 10247
Reputation: 418625
You also have to add the external library (TSim.jar
) to the build path of your project. A .jar
just being in the project folder does not automatically make it part of the class path.
Right click on project name => Properties => Java Build Path => Libraries tab => Add JARs... => and select your TSim.jar
You might need to do a Clean/Rebuild after this.
Upvotes: 2
Reputation: 13854
first clean the project.Follow the steps
next add the jar.Follow the steps
Upvotes: 0