我尝试将我的插件从 eclipse 3.2 迁移到 eclipse 4.3。启动插件时我遇到了一些重大错误。
我收到此错误消息:
捆绑包 ProjectScheduler_Final 的激活器 projectscheduler_final.Activator 无效
我的 OSGi 清单如下所示:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ProjectScheduler_Final Plug-in
Bundle-SymbolicName: ProjectScheduler_Final; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: projectscheduler_final.Activator
Bundle-Localization: plugin
Bundle-ClassPath: mysql-connector-java-5.1.18-bin.jar
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ui.forms
Eclipse-LazyStart: true
我的pluginxml像这样
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="projectscheduler_final.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
class="projectscheduler_final.Perspective"
fixed="false"
id="ProjectScheduler_Final.perspective"
name="Perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.views">
<view
name="View"
class="projectscheduler_final.View"
id="ProjectScheduler_Final.view">
</view>
</extension>
<extension
point="org.eclipse.ui.editors">
<editor
class="projectscheduler_final.ProjectSchedulerEditor"
default="false"
id="TestEditor"
icon="images/folder_table.png"
name="Test Editor"/>
<editor
class="projectscheduler_final.ProjectSchedulerEditorCreateProject"
default="false"
icon="images/wand.png"
id="CreateProject"
name="Create project editor"/>
<editor
class="projectscheduler_final.ProjectSchedulerEditorCreateSubProject"
default="false"
icon="images/wand.png"
id="CreateSubProject"
name="Create subproject editor"/>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="ProjectScheduler Final.command1"
name="ProjectScheduler Final.command1"/>
</extension>
</plugin>
我尝试了 Vogella and co 的一些教程。但没有清除错误。我检查了应用程序的名称等。一切似乎都已到位。如果有人能提供一些提示或指针,我应该仔细研究一下,那就太好了。