簡體   English   中英

無法在eclipse中創建Scala項目

[英]Unable to create Scala Project in eclipse

我有Eclipse IDE(用於Web開發人員的Eclipse Java EE IDE。版本:Luna Service Release 1(4.4.1))。 通過eclipe市場為eclipse版本3.0.x安裝了Scala IDE。 但是我無法創建一個scala項目,New-> project->沒有scala選項。 我的本地計算機上有scala 2.11和sbt,並且scala正在命令提示符下工作。 那是Eclipse最新版本的問題嗎?

我也是! 在eclipse錯誤日志(eclipse-workspace / .metadata / .plugins / org.eclipse.ui.workbench / log)中,我看到以下內容:

org.osgi.framework.BundleException: Could not resolve module: org.scala-ide.sdt.core [852]
Bundle was not resolved because of a uses contraint violation.
org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.scala-ide.sdt.core [osgi.identity; osgi.identity="org.scala-ide.sdt.core"; type="osgi.bundle"; version:Version="4.0.0.m3-2_11-201407241647-33f4f20"; singleton:="true"] because it is exposed to package 'javax.xml.bind' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.0.v20140606-1445"; singleton:="true"] and javax.xml.bind [osgi.identity; osgi.identity="javax.xml.bind"; type="osgi.bundle"; version:Version="2.1.9.v201005080401"] via two dependency chains.

一點點搜索導致Scala-IDE google組Eclipse bug 430458中的對話

解決方法是將-clean添加到eclipse.ini文件的頂部,從而以某種方式更改了解決依賴關系的順序。

溫馨提示:打開eclipse.ini時,將JVM最大堆大小增加到1024m。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM