我尝试使用STS创建基于桌面的应用,我想将JavaFX用于前端组件,但尝试安装会出现以下错误
Cannot complete the install because of a conflicting dependency.
Software being installed: e(fx)clipse - IDE - Basic 1.1.0.201411050807 (org.eclipse.fx.ide.basic.feature.feature.group 1.1.0.201411050807)
Software currently installed: Spring Tool Suite 3.6.3.201501121239-SR1-e44 (org.springsource.sts.ide 3.6.3.201501121239-SR1-e44)
Only one of the following can be installed at once:
Fake bundle for Javafx 2.2.0.201411050602 (org.eclipse.fx.javafx 2.2.0.201411050602)
Fake bundle for Javafx 2.2.0.201408150502 (org.eclipse.fx.javafx 2.2.0.201408150502)
Cannot satisfy dependency:
From: e(fx)clipse - IDE - Basic 1.1.0.201411050807 (org.eclipse.fx.ide.basic.feature.feature.group 1.1.0.201411050807)
To: org.eclipse.fx.javafx [2.2.0.201411050602]
Cannot satisfy dependency:
From: Spring Dashboard (optional) 3.6.3.201411271001-RELEASE (org.springsource.ide.eclipse.dashboard.feature.group 3.6.3.201411271001-RELEASE)
To: org.eclipse.fx.javafx [2.2.0.201408150502]
Cannot satisfy dependency:
From: Spring Tool Suite 3.6.3.201501121239-SR1-e44 (org.springsource.sts.ide 3.6.3.201501121239-SR1-e44)
To: org.springsource.sts.package.feature.group [3.6.3.201501121239-SR1-e44]
Cannot satisfy dependency:
From: Spring Tool Suite Package 3.6.3.201501121239-SR1-e44 (org.springsource.sts.package.feature.group 3.6.3.201501121239-SR1-e44)
To: org.springsource.ide.eclipse.dashboard.feature.group 0.0.0
简而言之,Java FX是否与Spring / STS兼容,如果可以,我如何能够通过此错误消息?
答案 0 :(得分:3)
我有同样的问题,看起来原因是:
Only one of the following can be installed at once:
Fake bundle for Javafx 2.2.0.201411050602 (org.eclipse.fx.javafx 2.2.0.201411050602)
Fake bundle for Javafx 2.2.0.201408150502 (org.eclipse.fx.javafx 2.2.0.201408150502)
由于使用此Fake bundle for Javafx
的唯一Spring IDE组件似乎是Spring Dashboard,因此如果删除(或省略)Spring Dashboard的安装,则可以使用e(fx)clipse使用Spring。
所以答案是肯定的,JavaFx与Spring IDE(STS)兼容。
安装步骤:
获得干净的Eclipse安装。
安装e(fx)clipse。
安装Spring STS,在确认页面上禁用仪表板。