首页 / SCALA / scala-eclipse
scala-eclipse
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了scala-eclipse,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含5211字,纯文字阅读大概需要8分钟。
内容图文

windows 下 scala 的 eclipse 开发环境
步骤:
1,
下载并安装
scala,
最新版
Download Previous Versions | The Scala
Programming Language
http://www.scala-lang.org/download/all.html
2, eclipse 开发环境搭建
先说结论:最简单的方法,下载Scala IDE for Eclipse官网提供的集成scala的eclipse。
下载页面:
Download Scala IDE for Eclipse - Scala IDE for Eclipse
http://scala-ide.org/download/sdk.html#
建立 scala 项目
再说走过的晚路:
安装方法:
步骤 1
步骤 2
步骤 3
卸载方法:
问题
按照上面的方法安装重启 eclipse 出现:
org.osgi.framework.BundleException: Could not resolve
module: org.scalaide.worksheet [878]
Unresolved
requirement: Import-Package: scala.tools.eclipse.semantichighlighting
->
Export-Package: scala.tools.eclipse.semantichighlighting;
bundle-version="3.0.4.v-2_11-201407232043-c46f499";
bundle-symbolic-name="org.scala-ide.sdt.core";
version="0.0.0"
org.scala-ide.sdt.core [869]
No
resolution report for the bundle.
Unresolved requirement: Import-Package: scala.tools.eclipse;
apply-aspects:="false"
->
Export-Package: scala.tools.eclipse;
bundle-version="3.0.4.v-2_11-201407232043-c46f499";
bundle-symbolic-name="org.scala-ide.sdt.core";
version="0.0.0"
Unresolved
requirement: Require-Bundle: org.scala-ide.sdt.core;
bundle-version="[3.0.4.v-2_11-201407232043-c46f499,3.0.4.v-2_11-201407232043-c46f499]"
->
Bundle-SymbolicName: org.scala-ide.sdt.core;
bundle-version="3.0.4.v-2_11-201407232043-c46f499";
singleton:="true"
Bundle was
not resolved because of a uses contraint violation.
org.osgi.service.resolver.ResolutionException: Uses constraint
violation. Unable to resolve resource org.scalaide.worksheet [osgi.identity;
osgi.identity="org.scalaide.worksheet";
type="osgi.bundle";
version:Version="0.2.3.v-2_11-201407232049-4f7988d";
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.
Chain 1:
org.scalaide.worksheet [osgi.identity;
osgi.identity="org.scalaide.worksheet";
type="osgi.bundle"; version:Version="0.2.3.v-2_11-201407232049-4f7988d";
singleton:="true"]
require:
(osgi.wiring.bundle=org.eclipse.core.runtime)
|
provide:
osgi.wiring.bundle: org.eclipse.core.runtime
org.eclipse.osgi [osgi.identity;
osgi.identity="org.eclipse.osgi"; type="osgi.bundle";
version:Version="3.10.0.v20140606-1445";
singleton:="true"]
Chain 2:
org.scalaide.worksheet [osgi.identity;
osgi.identity="org.scalaide.worksheet";
type="osgi.bundle";
version:Version="0.2.3.v-2_11-201407232049-4f7988d";
singleton:="true"]
require:
(osgi.wiring.bundle=org.scala-ide.sbt.full.library)
|
provide:
osgi.wiring.bundle;
osgi.wiring.bundle="org.scala-ide.sbt.full.library";
bundle-version:Version="0.13.2.v-2_11-20140723-2242"
org.scala-ide.sbt.full.library [osgi.identity;
osgi.identity="org.scala-ide.sbt.full.library";
type="osgi.bundle";
version:Version="0.13.2.v-2_11-20140723-2242"]
import:
(osgi.wiring.package=javax.xml.bind)
|
export:
osgi.wiring.package: javax.xml.bind
javax.xml.bind [osgi.identity;
osgi.identity="javax.xml.bind"; type="osgi.bundle";
version:Version="2.1.9.v201005080401"]
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)
|
原因
eclipse Luna4.4 版本比较新,参考官方文档的解释是不兼容。
Scala IDE for Eclipse 官网在安装需求中说支持 3.7,4.2
参考:
官方文档 eclipse 、 jdk 、 scala 版本选择说的很清楚。
Getting Started — Scala IDE 0.1-SNAPSHOT documentation
http://scala-ide.org/docs/current-user-doc/gettingstarted/index.html
常见问题:
Frequently Asked Questions — Scala IDE 0.1-SNAPSHOT documentation
http://scala-ide.org/docs/user/faq.html
附
版本代号 平台版本 主要版本发行日期 SR1 发行日期 SR2 发行日期
Callisto 3.2 2006 年 6 月 26 日 N/A N/A
Europa 3.3 2007 年 6 月 27 日 2007 年 9 月 28 日 2008 年 2 月 29 日
Ganymede 3.4 2008 年 6 月 25 日 2008 年 9 月 24 日 2009 年 2 月 25 日
Galileo 3.5 2009 年 6 月 24 日 2009 年 9 月 25 日 2010 年 2 月 26 日
Helios 3.6 2010 年 6 月 23 日 2010 年 9 月 24 日 2011 年 2 月 25 日
Indigo 3.7 2011 年 6 月 22 日 2011 年 9 月 23 日 2012 年 2 月 24 日
Juno 3.8 及 4.2 2012 年 6 月 27 日 2012 年 9 月 28 日 2013 年 3 月 1 日
Kepler 4.3 2013 年 6 月 26 日 2013 年 9 月 27 日 2014 年 2 月 28 日
Luna 4.4 2014 年 6 月 25 日 N/A N/A
选择个能用的 eclipse
Eclipse downloads - mirror selection
还是直接下载集成 scala 的吧!
直接就能在 eclipse 运行,连 scala 本身都不用下载安装了。
原文:http://www.cnblogs.com/xfly/p/4117638.html
内容总结
以上是互联网集市为您收集整理的scala-eclipse全部内容,希望文章能够帮你解决scala-eclipse所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。