我已经从 AdoptOpenJDK 设置了 jdk-15.0.2+7。我已经为 RCP 和 RAP 开发人员设置了 Eclipse IDE(版本:2020-12 (4.18.0),构建 ID:20201210-1552)。我启动了 Eclipse,使用默认设置创建了 Plug-in Project PortfolioAnalyzer:
- 目标平台:Eclipse,
- 创建富客户端应用程序?是的
- 插件模板:Eclipse 4 RCP 应用程序
- Checkbox Create sample content (part, menu, command...): True
然后我
- 使用默认产品配置编辑器打开 PortfolioAnalyzer.product,选项卡概览并单击导出部分中的链接 Eclipse 产品导出向导
- 指定目标目录:D:\rcp_out,默认所有设置。
并得到错误:
D:\Work\Eclipse\Java\PortfolioAnalyzer\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:477: The following error occurred while executing this line:
C:\Users\Vadim\.p2\pool\plugins\org.eclipse.pde.build_3.10.900.v20201111-1557\scripts\genericTargets.xml:240: A problem occured while invoking the director.
The following error occurred while executing this line:
D:\Work\Eclipse\Java\PortfolioAnalyzer\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:477: The following error occurred while executing this line:
C:\Users\Vadim\.p2\pool\plugins\org.eclipse.pde.build_3.10.900.v20201111-1557\scripts\genericTargets.xml:240: A problem occured while invoking the director.
我已经编辑
C:\Users\Vadim\.p2\pool\plugins\org.eclipse.pde.build_3.10.900.v20201111-1557\scripts\genericTargets.xml
通过在目标runDirector
属性定义之后添加以下行:
<record name="d:/build.log" loglevel="verbose" append="false"/>
如果发生错误时我得到日志文件。这是它的内容:
Property "p2.director.log" has not been set
[p2.director] Installing App 1.0.0.202102120000.
[p2.director] Installation failed.
[p2.director] Cannot complete the install because one or more required items could not be found.
[p2.director] Software being installed: PortfolioAnalyzer 1.0.0.202102120000 (App 1.0.0.202102120000)
[p2.director] Missing requirement: PortfolioAnalyzer 1.0.0.202102120000 (PortfolioAnalyzer 1.0.0.202102120000) requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=15))' but it could not be found
[p2.director] Cannot satisfy dependency:
[p2.director] From: PortfolioAnalyzer 1.0.0.202102120000 (App 1.0.0.202102120000)
[p2.director] To: org.eclipse.equinox.p2.iu; PortfolioAnalyzer [1.0.0.202102120000,1.0.0.202102120000]
[p2.director] Cannot complete the install because one or more required items could not be found.
[p2.director] Software being installed: PortfolioAnalyzer 1.0.0.202102120000 (App 1.0.0.202102120000)
[p2.director] Missing requirement: PortfolioAnalyzer 1.0.0.202102120000 (PortfolioAnalyzer 1.0.0.202102120000) requires 'osgi.ee; (&(osgi.ee=JavaSE)(version=15))' but it could not be found
[p2.director] Cannot satisfy dependency:
A problem occured while invoking the director.
runDirector: duration 0 seconds
你能解释一下如何解决这个问题吗?应该p2.director.log
以某种方式设置属性吗?还是有什么问题org.eclipse.equinox.p2.iu
?