Eclipse插件开发由于java.lang.NoClassDefFoundError,无法实例化类:

时间:2023-01-15 15:55:28

Title: Eclipse plug-in development Unable to instantiate class due to java.lang.NoClassDefFoundError:

标题:Eclipse插件开发由于java.lang.NoClassDefFoundError,无法实例化类:

Trying to build an eclipse plugin but getting some runtime error..

试图构建一个eclipse插件,但得到一些运行时错误..

I understand this is due to a class file that the code depends on and it is present at compile time but not found at runtime....

我理解这是由于代码依赖的类文件,它在编译时出现但在运行时没有找到....

I'm not sure what I have to do to fix this. the source file of the file that is not found is in my project workspace.

我不确定我要做些什么来解决这个问题。未找到的文件的源文件位于我的项目工作区中。

the project containing of the source file is in the JavaBuildPath of the troubled project as well.

包含源文件的项目也在陷入困境的项目的JavaBuildPath中。

1 个解决方案

#1


You'll need to put the project of the missing file as dependency in the plugin configuration file too. Then it'll be available at runtime.

您还需要将缺少文件的项目作为依赖项放在插件配置文件中。然后它将在运行时可用。

#1


You'll need to put the project of the missing file as dependency in the plugin configuration file too. Then it'll be available at runtime.

您还需要将缺少文件的项目作为依赖项放在插件配置文件中。然后它将在运行时可用。