Spring Tool Suit-启动Spring Starter项目的问题

时间:2015-07-23 15:57:35

标签: spring-tool-suite

在启动Spring Starter Project时,我遇到了异常。 STS版本3.7.0。我是Spring的新手,感谢任何帮助。

!ENTRY org.eclipse.fx.core 4 0 2015-07-22 11:09:51.697 !MESSAGE FrameworkEvent ERROR !堆栈0 org.osgi.framework.BundleException:无法解析模块:org.eclipse.fx.core [412]   未解决的要求:要求能力:osgi.ee;滤波器:= “(及(osgi.ee = JavaSE的)(版本= 1.8))”   未解决的要求:Require-Bundle:org.eclipse.jdt.annotation;捆绑版本= “[2.0.0,3.0.0)”;分辨率:=“可选”      - > Bundle-SymbolicName:org.eclipse.jdt.annotation;束版本=“2.0.100.v20150311-1658”        org.eclipse.jdt.annotation [421]          未解决的要求:要求能力:osgi.ee;滤波器:= “(及(osgi.ee = JavaSE的)(版本= 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)

1 个答案:

答案 0 :(得分:0)

您可以放心地忽略该错误。它是Eclipse / OSGI告诉你无法加载一个可选的包'org.eclipse.fx.core',因为它需要Java 8.这个包被较新的STS Dashboard实现使用,但你将把旧的仪表板作为无论如何都是一个后备选项,所以你不会失去任何关键功能。

如果你想让错误消失,你应该使用JDK 8运行STS。

如何做到这一点可能取决于您的操作系统,但通常(在Windows / Linux上)您找到STS.ini文件并将以下两行添加到文件的开头:

rhs += lhs

确保将第二行替换为安装了JDK 8'java'或'javaw.exe'可执行文件的位置。

相关问题