min games
min games

Reputation: 21

Can't import library in Eclipse after adding external JAR

I imported a library by going to Properties > Java Build Path > Libraries > Add External Jars and selected the file but the library wasn't accessible (when trying to import in java code). Am I doing something wrong?

Upvotes: 1

Views: 1015

Answers (2)

Ali Sajjad Rizavi
Ali Sajjad Rizavi

Reputation: 4480

You need to refresh the eclipse project using File->Refresh.

Then all your imports will work perfect.

Upvotes: 0

Bartosz Cichowicz
Bartosz Cichowicz

Reputation: 51

In MANIFEST.MF add

Bundle-ClassPath: lib/external.jar,
 .

and in build.properties (lib is folder in project with external jars)

bin.includes = plugin.xml,\
               META-INF/,\
               .,\
               lib/

Upvotes: 1

Related Questions