打包插件中的类未找到异常。 Xtext文件.ui生成

时间:2013-08-01 01:26:41

标签: eclipse-plugin eclipse-pde update-site

我正在打包一个名为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部分,我已经检查了包含插件类的jar文件,并列在Bundle-ClassPath中。在插件的依赖关系中出现xtext,在文件built.properties中检查SourceBuild和BinaryBuild中的源文件夹,但我找不到更多要做的事情。非常感谢你的帮助。

PS:仅供参考:我在插件之后打包我的插件:http://www.vogella.com/articles/EclipsePlugIn/article.html#p2deployplugin_overview

0 个答案:

没有答案