【问题标题】:Unable to create Scala Project in eclipse无法在 Eclipse 中创建 Scala 项目
【发布时间】:2014-09-11 20:52:58
【问题描述】:

我有 Eclipse IDE(面向 Web 开发人员的 Eclipse Java EE IDE。版本:Luna Service Release 1 (4.4.1))。通过 ecipe 市场为 Eclipse 版本 3.0.x 安装了 Scala IDE。但我无法创建 scala 项目,新建 -> 项目 -> 没有 scala 选项。我的本地机器上有 scala 2.11 和 sbt,并且 scala 正在命令提示符下工作。是不是eclipse最新版本的问题?

【问题讨论】:

    标签: eclipse scala-ide


    【解决方案1】:

    我也是!在 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.
    

    经过一番搜索,我们找到了 conversation in the Scala-IDE google groupEclipse bug 430458

    解决方法是将-clean 添加到 eclipse.ini 文件的顶部,这会以某种方式改变依赖关系的解决顺序。

    额外提示:打开 eclipse.ini 后,将 JVM 最大堆大小增加到 1024m。

    【讨论】:

    猜你喜欢
    • 2019-05-25
    • 2015-07-08
    • 1970-01-01
    • 1970-01-01
    • 2021-12-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多