SAP Web IDE 在启动时抛出错误
你好,我正在尝试在 mac 上设置 SAP Web IDE,但我在本地不断收到错误消息,例如:
!ENTRY com.sap.webide.orionplugin 4 0 2023-03-07 08:49:11.762
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.sap.webide.orionplugin [13]
Unresolved requirement: Require-Bundle: com.sap.webide.orionplugin.reverseproxy
-> Bundle-SymbolicName: com.sap.webide.orionplugin.reverseproxy; bundle-version="1.53.9"; singleton:="true"
com.sap.webide.orionplugin.reverseproxy [14]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"
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)
!ENTRY com.sap.webide.orionplugin.reverseproxy 4 0 2023-03-07 08:49:11.776
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: com.sap.webide.orionplugin.reverseproxy [14]
Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.7))"
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)
我已经安装了 java 7 版本,我的 JAVA_HOME 也指向 java7。如何摆脱这些错误?
我更新了 Java 主页以指向 java7.
你可能有多个版本的 java,而 orion 可能会选择最新的一个。您可以更新 orion.ini 配置文件,该文件位于
/Applications/SAPWebIDE/eclipse/orion.app/Contents/MacOS/orion.ini
。在 -vmargs
属性之前添加以下内容:
-vm
/Library/Java/JavaVirtualMachines/jdk<java7version>.jdk/Contents/Home/bin/java
确保 jdk 目录指向 java7 并且它们都在不同的行中。