views:

34

answers:

1

I added a classpath variable (via eclipse's build path) that points to a cache of jars. While this folder is represented in eclipse's folder view, the contained jars are not recognized for some reason.

For example, when I import a class that is present in a jar in the cache (and thus the added classpath variable), eclipse indicates that the class can not be resolved.

Any ideas what is wrong and how to resolve it?

+1  A: 

You have to make sure that the jar(s) that you want are actually included in the classpath of the project you're working on. Right-click on the project, go to properties -> java build path and make sure you've added the jar to your project.

Steve B.
So I have to add each jar individually? There is no way to add the jar cache, like eclipse automatically does for a local maven repo?
ABK07