2012-06-12 142 views
15

我在試圖從eclipse導出IMP插件時遇到了一個奇怪的錯誤。 當使用日食靛藍我得到:eclipse錯誤導出插件

C:\Users\Shachar\workspace jee\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:88: The following error occurred while executing this line: 
C:\Users\Shachar\workspace jee\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:103: The following error occurred while executing this line: 
C:\Users\Shachar\workspace jee\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:26: The following error occurred while executing this line: 
C:\Users\Shachar\workspace jee\ide\build.xml:293: The following error occurred while executing this line: 
C:\Users\Shachar\workspace jee\ide\build.xml:368: Problem: failed to create task or type apitooling.apigeneration 
Cause: The name is undefined. 
Action: Check the spelling. 
Action: Check that any custom tasks/types have been declared. 
Action: Check that any <presetdef>/<macrodef> declarations have taken place. 

The following error occurred while executing this line: 
C:\Users\Shachar\workspace jee\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:103: The following error occurred while executing this line: 
C:\Users\Shachar\workspace jee\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\assemble.org.eclipse.pde.container.feature.win32.win32.x86.xml:26: The following error occurred while executing this line: 
C:\Users\Shachar\workspace jee\ide\build.xml:293: The following error occurred while executing this line: 
C:\Users\Shachar\workspace jee\ide\build.xml:368: Problem: failed to create task or type apitooling.apigeneration 
Cause: The name is undefined. 
Action: Check the spelling. 
Action: Check that any custom tasks/types have been declared. 
Action: Check that any <presetdef>/<macrodef> declarations have taken place. 

,當我使用的Eclipse RCP靛藍說唱&版本出現同樣的錯誤。

出於同樣的原因,我無法爲插件創建更新站點。

這個錯誤似乎沒有發生在eclipse jee版本中。當導出成功時,插件本身不起作用(並且它在我運行項目時工作正常)。

+0

你有沒有想過這個?我有同樣的問題。 –

+1

@ MattCrinklaw-Vogt看起來工作區的路徑包含'space'字符。嘗試沒有空間的工作區。 – Kane

回答

8

我有同樣的問題。重新安裝「Eclipse插件開發環境」插件最終爲我解決了它。

+0

我認爲最近丟失的軟件包是org.eclipse.pde.api.tools,當我最近遇到這種情況時,似乎是缺失的軟件包。我簡單地通過在幫助 - >安裝新軟件中添加PDE來解決它...「 – BjornArnelid