我下载了 Eclipse,并尝试在其中安装 jQuery。我发现这在 StackOverflow 上,并遵循了 nielsvh 的回答。我能够使用 Maven 构建项目,但发现将其导入 Eclipse 时遇到问题。我收到以下错误消息:
Cannot complete the install because one or more required items could not be found.
Software being installed: JSDT jQuery Integration 1.7.0 (org.eclipselabs.jsdt.jquery_feature.feature.group 1.7.0)
Missing requirement: JSDT jQuery API 1.7.0 (org.eclipselabs.jsdt.jquery.api 1.7.0) requires 'bundle org.eclipse.wst.jsdt.core [1.1.0,2.0.0)' but it could not be found
Cannot satisfy dependency:
From: JSDT jQuery Integration 1.7.0 (org.eclipselabs.jsdt.jquery_feature.feature.group 1.7.0)
To: org.eclipselabs.jsdt.jquery.api [1.7.0]
我已经安装了 Web Tools:
为什么我会收到此错误?我该如何修复它?
编辑:
在麦当劳的帮助下,我能够通过重新安装 JSDT 取得进一步进展,但现在我遇到了一个不同的错误,它想要卸载 JSDT。
Cannot complete the install because of a conflicting dependency.
Software being installed: JSDT jQuery Integration 1.7.0 (org.eclipselabs.jsdt.jquery_feature.feature.group 1.7.0)
Software currently installed: Eclipse Web Developer Tools 3.9.0.v201706011953 (org.eclipse.wst.web_ui.feature.feature.group 3.9.0.v201706011953)
Only one of the following can be installed at once:
JavaScript Development Tools Core 1.3.1.v201401291437 (org.eclipse.wst.jsdt.core 1.3.1.v201401291437)
JavaScript Development Tools Core 2.0.300.v201703171536 (org.eclipse.wst.jsdt.core 2.0.300.v201703171536)
JavaScript Development Tools Core 1.3.0.v201308282108 (org.eclipse.wst.jsdt.core 1.3.0.v201308282108)
JavaScript Development Tools Core 1.1.202.v201208171701 (org.eclipse.wst.jsdt.core 1.1.202.v201208171701)
Cannot satisfy dependency:
From: JavaScript Development Tools 2.1.0.v201706011953 (org.eclipse.wst.jsdt.feature.feature.group 2.1.0.v201706011953)
To: org.eclipse.wst.jsdt.core [2.0.300.v201703171536]
Cannot satisfy dependency:
From: Eclipse Web Developer Tools 3.9.0.v201706011953 (org.eclipse.wst.web_ui.feature.feature.group 3.9.0.v201706011953)
To: org.eclipse.wst.jsdt.feature.feature.group [2.1.0.v201706011953]
Cannot satisfy dependency:
From: JSDT jQuery API 1.7.0 (org.eclipselabs.jsdt.jquery.api 1.7.0)
To: bundle org.eclipse.wst.jsdt.core [1.1.0,2.0.0)
Cannot satisfy dependency:
From: JSDT jQuery Integration 1.7.0 (org.eclipselabs.jsdt.jquery_feature.feature.group 1.7.0)
To: org.eclipselabs.jsdt.jquery.api [1.7.0]