gpt4 book ai didi

java - 在Eclipse Luna中安装STS(Spring)时出错

转载 作者:行者123 更新时间:2023-12-02 03:48:50 25 4
gpt4 key购买 nike

重现步骤:1. 从 http://www.eclipse.org/downloads/ 下载 Eclipse luna sr2 软件包

  • 额外并打开eclipse IDE

  • 点击菜单“帮助”->“Eclipse Marketplace”-> 搜索“Spring”-> 点击“Spring Tool Suite (STS) for Eclipse 3.7.7RELEASE”-> 点击“安装”

  • Spring安装完成后重启eclipse IDE

  • git 和 maven 已损坏。

  • 我复制了一些错误日志:

    1) org.eclipse.egit.ui 中的 FrameworkEvent 错误

    eclipse.buildId=4.4.2.M20150204-1700
    java.version=1.7.0_51
    java.vendor=Oracle Corporation
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_NZ
    Framework arguments: -product org.eclipse.epp.package.java.product
    Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

    org.eclipse.mylyn.git.ui
    Error
    Fri Mar 18 17:16:34 NZDT 2016
    FrameworkEvent ERROR

    org.osgi.framework.BundleException: Could not resolve module: org.eclipse.mylyn.git.ui [269]
    Unresolved requirement: Require-Bundle: org.eclipse.egit.ui
    -> Bundle-SymbolicName: org.eclipse.egit.ui; bundle-version="4.2.0.201601211800-r"; singleton:="true"
    org.eclipse.egit.ui [458]
    No resolution report for the bundle. Bundle was not resolved because of a uses contraint violation.
    org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.eclipse.egit.ui [osgi.identity; osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle"; version:Version="4.2.0.201601211800-r"; singleton:="true"] because it is exposed to package 'com.jcraft.jsch' from resources com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle"; version:Version="0.1.53.v201508180515"] and com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle"; version:Version="0.1.51.v201410302000"] via two dependency chains.

    Chain 1:
    org.eclipse.egit.ui [osgi.identity; osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle"; version:Version="4.2.0.201601211800-r"; singleton:="true"]
    require: (&(osgi.wiring.bundle=com.jcraft.jsch)(&(bundle-version>=0.1.37)(!(bundle-version>=0.2.0))))
    |
    provide: osgi.wiring.bundle: com.jcraft.jsch
    com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle"; version:Version="0.1.53.v201508180515"]

    Chain 2:
    org.eclipse.egit.ui [osgi.identity; osgi.identity="org.eclipse.egit.ui"; type="osgi.bundle"; version:Version="4.2.0.201601211800-r"; singleton:="true"]
    require: (&(osgi.wiring.bundle=org.eclipse.jsch.core)(&(bundle-version>=1.1.100)(!(bundle-version>=2.0.0))))
    |
    provide: osgi.wiring.bundle; osgi.wiring.bundle="org.eclipse.jsch.core"; bundle-version:Version="1.1.500.v20131112-1442"; singleton:="true"
    org.eclipse.jsch.core [osgi.identity; osgi.identity="org.eclipse.jsch.core"; type="osgi.bundle"; version:Version="1.1.500.v20131112-1442"; singleton:="true"]
    require: (&(osgi.wiring.bundle=com.jcraft.jsch)(&(bundle-version>=0.1.50)(!(bundle-version>=1.0.0))))
    |
    provide: osgi.wiring.bundle: com.jcraft.jsch
    com.jcraft.jsch [osgi.identity; osgi.identity="com.jcraft.jsch"; type="osgi.bundle"; version:Version="0.1.51.v201410302000"]
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

    2) FrameworkEvent 错误

    eclipse.buildId=4.4.2.M20150204-1700
    java.version=1.7.0_51
    java.vendor=Oracle Corporation
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_NZ
    Framework arguments: -product org.eclipse.epp.package.java.product
    Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

    org.eclipse.m2e.core
    Error
    Fri Mar 18 17:16:34 NZDT 2016
    FrameworkEvent ERROR

    org.osgi.framework.BundleException: Could not resolve module: org.eclipse.m2e.core [479]
    Unresolved requirement: Require-Bundle: org.eclipse.m2e.maven.runtime; bundle-version="[1.7.0,1.8.0)"
    -> Bundle-SymbolicName: org.eclipse.m2e.maven.runtime; bundle-version="1.7.0.20160202-2118"; singleton:="false"
    org.eclipse.m2e.maven.runtime [491]
    Unresolved requirement: Require-Bundle: org.eclipse.m2e.maven.runtime.slf4j.simple; bundle-version="[1.7.0,1.8.0)"
    -> Bundle-SymbolicName: org.eclipse.m2e.maven.runtime.slf4j.simple; bundle-version="1.7.0.20160202-2118"; singleton:="false"
    org.eclipse.m2e.maven.runtime.slf4j.simple [492]
    Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"

    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

    最佳答案

    当我将 Eclipse 二进制文件从一台机器复制到另一台机器时,我在 Eclipse 中的 Maven 插件中发现了相同类型的问题。

    org.osgi.framework.BundleException: Could not resolve module: org.eclipse.m2e.core [479] Unresolved requirement: Require-Bundle: org.eclipse.m2e.maven.runtime; bundle-version="[1.7.0,1.8.0)" -> Bundle-SymbolicName: org.eclipse.m2e.maven.runtime; bundle-version="1.7.0.20160202-2118"; singleton:="false" org.eclipse.m2e.maven.runtime [491] Unresolved requirement: Require-Bundle: org.eclipse.m2e.maven.runtime.slf4j.simple; bundle-version="[1.7.0,1.8.0)" -> Bundle-SymbolicName: org.eclipse.m2e.maven.runtime.slf4j.simple; bundle-version="1.7.0.20160202-2118"; singleton:="false" org.eclipse.m2e.maven.runtime.slf4j.simple [492] Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"

    原因是新机器上的JDK7。当我在 eclipse.ini 中指向 JDK8 时,这个问题得到了解决。

    关于java - 在Eclipse Luna中安装STS(Spring)时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36076130/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com