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?
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/
You need to refresh the eclipse project using File->Refresh
.
Then all your imports will work perfect.
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.