1

我开发了一个eclipse插件。当我创建项目时,我提供了 3.2 及更高版本支持的 eclipse 版本。该插件在 indigo 中完美运行。但是,不在伽利略工作。

插件.xml

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>

<extension
         id="wizard"
         name="SubApp Config"
         point="org.eclipse.ui.newWizards">
      <category
            name="SubApp CodeGen"
            id="wizard.category1">
      </category>
      <wizard
            name="SubApp CodeGen"
            icon="icons/wizard.gif"
            category="wizard.category1"
            class="com.xyz.code.generator.wizard.SubAppWizard"
            id="wizard.wizard1">
         <description>

         </description>
      </wizard>
</extension>



</plugin>

清单文件

    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: com.xyz.article.wizards
    Bundle-SymbolicName: com.citi.code.generator;singleton:=true
    Bundle-Version: 1.0.0
    Require-Bundle: org.eclipse.ui,
     org.eclipse.core.runtime,
     org.eclipse.core.resources,
     org.eclipse.jdt.core,
     org.eclipse.jdt.ui,
     org.eclipse.ui.forms;bundle-version="3.4.1",
     com.citi.code.generator.flavor;bundle-version="1.0.0",
     org.apache.velocity;bundle-version="1.5.0"
    Bundle-ClassPath: .
    Bundle-RequiredExecutionEnvironment: J2SE-1.5,
     JavaSE-1.6

请帮忙

4

1 回答 1

1

根据弗雷德里克的评论,

I think Indigo requires java 1.6 and Galileo may not support it. Try to 
change execution environment to 1.5 and recompile and see if that changes
anything.

将执行环境更改为 1.5,并将 JAVA SDK 设置为 Java 1.5。

它解决了这个问题。谢谢

于 2013-01-07T08:51:51.850 回答