1

我正在打包一个为我制作的名为 mView 的插件。我使用 xtext 创建了我的插件,它生成的文件比我的原始项目多两个文件(mView.test 和 mView.ui) 我在部署我的打包插件时遇到了问题(即,当它没有在运行时工作台中启动时)。

错误是:

Plug-in mView.ui was unable to load class org.xtext.example.mydsl.ui.MViewExecutableExtensionFactory. 

org.eclipse.core.runtime.CoreException: Plug-in mView.ui was unable to load class org.xtext.example.mydsl.ui.MViewExecutableExtensionFactory.
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at ...
Caused by: java.lang.ClassNotFoundException: org.xtext.example.mydsl.ui.MViewExecutableExtensionFactory
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
...

我已经确保了 jdk 和 jre 的兼容性,没关系。在插件的 MANIFIEST 部分,我已经检查了包含插件类并列在 Bundle-ClassPath 中的 jar 文件。在插件的依赖项中出现了 xtext,并且在文件 built.properties 中检查了 SourceBuild 和 BinaryBuild 中的源文件夹,但我找不到更多要做的事情。非常感谢您的帮助。

PS:仅供参考:我按照这个教程打包我的插件:http ://www.vogella.com/articles/EclipsePlugIn/article.html#p2deployplugin_overview

4

0 回答 0