eclipse插件导出失败

时间:2023-01-30 20:12:25

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

现象

将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包已经导入且编译正常
eclipse插件导出失败

解决方法

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