解决Eclipse 2021-12中对org.eclipse.equinox.p2.iu的插件依赖性

ipakzgxi  于 2022-11-04  发布在  Eclipse
关注(0)|答案(2)|浏览(990)

我试图让Eclipse插件(最初为Eclipse氖和Java 8开发的)工作,但无法在目标平台上加载。我的系统配置如下:

  • 机器:2021款MacBook Pro(M1 Pro)
  • Java版本:Java SE 17.0.1(也尝试了JDK 8 Temurin)
  • Eclipse 2021-12(4. 22. 0)(虽然我也试过在这台机器上安装Eclipse氖,也遇到了同样的问题)

当我尝试在目标平台中加载时(包含在帖子的底部),我得到了以下错误:

Problems occurred while resolving the target contents
    Cannot complete the install because one or more required items could not be found.
        Cannot satisfy dependency:
            From: Equinox p2, Provisioning for IDEs. 2.2.201.v20161124-1529 (org.eclipse.equinox.p2.user.ui.feature.group 2.2.201.v20161124-1529)
            To: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.core.feature.feature.group [1.3.201.v20161115-1950,1.3.201.v20161115-1950]
        Cannot satisfy dependency:
            From: Eclipse Platform 4.6.2.M20161124-1400 (org.eclipse.platform.ide 4.6.2.M20161124-1400)
            To: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.user.ui.feature.group [2.2.201.v20161124-1529,2.2.201.v20161124-1529]
        Missing requirement for filter properties ~= $0: Equinox p2, headless functionalities 1.3.201.v20161115-1950 (org.eclipse.equinox.p2.core.feature.feature.group 1.3.201.v20161115-1950) requires 'org.eclipse.equinox.p2.iu; org.eclipse.equinox.security.macosx [1.100.200.v20130327-1442,1.100.200.v20130327-1442]' but it could not be found
        Software being installed: Eclipse Platform 4.6.2.M20161124-1400 (org.eclipse.platform.ide 4.6.2.M20161124-1400)

目标平台为:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="visuflow" sequenceNumber="42">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.platform.ide" version="4.6.2.M20161124-1400"/>
<unit id="org.eclipse.pde.feature.group" version="3.12.2.v20161124-1400"/>
<unit id="org.eclipse.pde.source.feature.group" version="3.12.2.v20161124-1400"/>
<unit id="org.eclipse.rcp.feature.group" version="4.6.2.v20161124-1400"/>
<unit id="org.eclipse.rcp.source.feature.group" version="4.6.2.v20161124-1400"/>
<repository location="http://download.eclipse.org/eclipse/updates/4.6"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.apache.commons.lang" version="2.6.0.v201404270220"/>
<unit id="org.apache.commons.lang.source" version="2.6.0.v201404270220"/>
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20160520211859/repository/"/>
</location>
</locations>
<implicitDependencies>
<plugin id="org.apache.felix.gogo.command"/>
<plugin id="org.apache.felix.gogo.shell"/>
<plugin id="org.eclipse.core.net"/>
<plugin id="org.eclipse.equinox.console"/>
<plugin id="org.eclipse.ui.ide"/>
<plugin id="org.eclipse.pde.runtime"/>
<plugin id="org.eclipse.equinox.ds"/>
<plugin id="org.eclipse.ui.ide.application"/>
<plugin id="org.apache.felix.gogo.runtime"/>
</implicitDependencies>
    <targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Eclipse Temurin 8 [1.8.0_312]"/>
</target>

提前感谢您的帮助。

编辑内容:

  • @greg-449正确地指出了冲突的架构。我最初是在aarch 64上运行的,但是当我下载x86_64 Eclipse/Java时,插件解决了。然而,现在我有了一个不同的问题,仍然与冲突的架构有关。当试图启动我的插件时:
/Users/austin/eclipse-workspace/visuflow/.metadata/.plugins/org.eclipse.pde.core/New_configuration/org.eclipse.osgi/132/0/.cp/libswt-cocoa-4628.jnilib: dlopen(/Users/austin/eclipse-workspace/visuflow/.metadata/.plugins/org.eclipse.pde.core/New_configuration/org.eclipse.osgi/132/0/.cp/libswt-cocoa-4628.jnilib, 0x0001): tried: '/Users/austin/eclipse-workspace/visuflow/.metadata/.plugins/org.eclipse.pde.core/New_configuration/org.eclipse.osgi/132/0/.cp/libswt-cocoa-4628.jnilib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libswt-cocoa-4628.jnilib' (no such file)
4bbkushb

4bbkushb1#

对于任何有类似问题的人来说:

requires 'org.eclipse.equinox.p2.iu; org.eclipse.equinox.util 1.0.400'

第一种解决方案:我建议您检查一下您安装的Eclipse版本。我安装的是最新的,默认情况下,我从Eclipse官方页面上看到了“Eclipse IDE for Java Developers”。如果您再花2分钟,您可以找到“Eclipse IDE for Enterprise Java and Web Developers”--它更高级,而且看起来有些插件只在这个版本上工作。
第二种解决方案:将新站点名称添加到“可用软件站点”:Eclipse氧合器2网址:http://download.oracle.com/otn_software/oepe/library/eclipse-oxygen.2
我测试了上面的解决方案,它们都适合我。干杯。

5t7ly7z5

5t7ly7z52#

2022-09 eclipse工程与第二个解决方案dKuch..
Eclipse -〉帮助-〉可用软件站点的新站点名称:Eclipse氧合器2网址:http://download.oracle.com/otn_software/oepe/library/eclipse-oxygen.2
查找“macosx”
在我的情况下,我只是勾选和安装一切:D

相关问题