Eclipse plugin 类在打包的插件中未找到异常。Xtext file.ui生成

Eclipse plugin 类在打包的插件中未找到异常。Xtext file.ui生成,eclipse-plugin,eclipse-pde,update-site,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.CoreExcepti

我正在打包一个名为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类路径中。在插件的依赖项中显示xtext,并在文件build.properties中检查SourceBuild和BinaryBuild中的source文件夹,但我找不到更多要做的事情。我将非常感谢你的帮助


PS:仅供参考:我按照以下步骤打包插件:

我已经修复了它。xtext生成mView.test和mView.ui的项目没有build.properties文件。我复制主项目的此文件,在每个项目中粘贴和修改。而且它有效!很好,你找到了自己问题的解决方案。为了让其他人从你的见解中受益,你应该将其作为答案发布。这里是stackoverflow。