2012-12-04 48 views
1

我開發了一個eclipse插件。當我創建項目時,我提供了支持3.2及以上的eclipse版本。該插件在靛藍中完美運行。但是,不在伽利略工作。插件在Eclipse Indigo中工作,不在galileo中

plugins.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.MF

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 

請幫

+0

它是如何不工作?您也可以考慮在eclipse社區中進行詢問 –

+0

轉到您的工作區文件夾,打開.metadata並查看錯誤信息並將其粘貼在此處。 –

+0

它可能是一個Java問題?我認爲Indigo需要Java 1.6,而Galileo可能不支持它。嘗試將執行環境更改爲1.5並重新編譯,看看是否有改變。 – Fredrik

回答

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的d將JAVA SDK設置爲Java 1.5。

它解決了這個問題。謝謝

相關問題