在Mountain Lion下导出eclipse插件失败

Mav*_*rik 2 macos eclipse-plugin osx-mountain-lion eclipse-juno

我正在为Mountain Lion开发Eclipse Juno插件.

我可以通过run as> 来测试我的插件没有问题Eclipse application.

但是,当我尝试通过执行以下操作导出插件时,它会失败.

  1. 打开 plugin.xml
  2. 转到选项卡 Overview
  3. 选择 Export Wizard

它返回以下错误:

/Users/luca/Documents/University/PhD/FODA/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/compile.org.eclipse.pde.container.feature.xml:4: The following error occurred while executing this line:
/Users/luca/Documents/University/PhD/FODA/it.unibg.robotics.featuremodels.model/build.xml:31: /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/Classes does not exist.
The following error occurred while executing this line:
/Users/luca/Documents/University/PhD/FODA/it.unibg.robotics.featuremodels.model/build.xml:31: /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/Classes does not exist.
Run Code Online (Sandbox Code Playgroud)

有什么问题?

Vít*_*uza 6

我今天自己遇到了这个问题.据我所知,这是因为最近Apple停止维护他们的Java版本,转而支持Oracle的MacOS X官方版本.但是,Oracle版本与以前没有相同的目录结构,Eclipse生成的构建脚本采用旧结构.

您可以看到许多与此相关的错误报告.例如,

我听说切换到使用Java 6可以解决这个问题,因为MacOS X仍然安装了具有旧目录结构的Apple Java 6.我不想回到Java 6,所以我没试过.

相反,我尝试创建报告丢失的目录(即,/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/Classes),其中没有任何内容.奇怪的是,它似乎有效.

让我知道它是否适合你... Eclipse的未来更新也可能解决这个问题(我今天更新了我的,但问题仍然存在).