eclipse插件导出失败

Posted windmissing

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse插件导出失败相关的知识,希望对你有一定的参考价值。

将eclipse插件导出为Deployed plug-ins and fragments时失败并提示:

现象

将eclipse插件导出时失败,根据提示打开log

1. ERROR in D:\\workspace\\com.test.myplugin\\src\\com\\test\\myplugin\\Environment.java (at line 5)
    import org.eclipse.jdt.core.IJavaElement;
           ^^^^^^^^^^^^^^^
The import org.eclipse.jdt cannot be resolved

似乎是import org.eclipse.jdt有问题,但在工程中,org.eclipse.jdt.core.IJavaElement对应的jar包已经导入且编译正常

解决方法

原因还没找到,但有解决方法。
Deployed plug-ins and fragments,打开Options选项卡,钩选Use class files compiled in the workspace

以上是关于eclipse插件导出失败的主要内容,如果未能解决你的问题,请参考以下文章