[英]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).我通过转到
Properties > Java Build Path > Libraries > Add External Jars
导入了一个库,然后选择了该文件,但无法访问该库(尝试导入 java 代码时)。 Am I doing something wrong?难道我做错了什么?
In MANIFEST.MF add在 MANIFEST.MF 添加
Bundle-ClassPath: lib/external.jar,
.
and in build.properties (lib is folder in project with external jars)并在 build.properties (lib 是项目中带有外部 jar 的文件夹)
bin.includes = plugin.xml,\
META-INF/,\
.,\
lib/
You need to refresh the eclipse project using File->Refresh
.您需要使用
File->Refresh
刷新 eclipse 项目。
Then all your imports will work perfect.那么你所有的进口都会完美地工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.