您的位置:首页 > 其它

scala ide安装

2016-03-10 16:05 344 查看
 

0 经常用到开发工具有

 

a) Intellij IDEA  免费版

b) eclipse + scala插件

c) scala ide(基于Eclipse 4.3 )

 

 

1  尝试eclipse + scala插件安装失败流程如下

 

最开始尝试用b) eclipse + scala插件方式,但是无论我是下载 eclipse3.8 还是 eclipse4.2,在在线下载eclipse对应版本scala插件时,总会报错,信息如下(说是依赖冲突,至今未找到原因)

 

Java代码 

 


Cannot complete the install because of a conflicting dependency.  

  Software being installed: Scala IDE for Eclipse dev support 4.0.0.m1-2_11-201401241152-b48fae2 (org.scala-ide.sdt.dev.feature.feature.group 4.0.0.m1-2_11-201401241152-b48fae2)  

  Software being installed: Scala IDE for Eclipse dev support 4.0.0.m2-2_11-201405271306-a781482 (org.scala-ide.sdt.dev.feature.feature.group 4.0.0.m2-2_11-201405271306-a781482)  

  Only one of the following can be installed at once:   

    Scala Plugin Spy 4.0.0.m2-2_11-201405271306-a781482 (org.scala-ide.sdt.spy 4.0.0.m2-2_11-201405271306-a781482)  

    Scala Plugin Spy 4.0.0.m1-2_11-201401241152-b48fae2 (org.scala-ide.sdt.spy 4.0.0.m1-2_11-201401241152-b48fae2)  

  Cannot satisfy dependency:  

    From: Scala IDE for Eclipse dev support 4.0.0.m1-2_11-201401241152-b48fae2 (org.scala-ide.sdt.dev.feature.feature.group 4.0.0.m1-2_11-201401241152-b48fae2)  

    To: org.scala-ide.sdt.spy [4.0.0.m1-2_11-201401241152-b48fae2]  

  Cannot satisfy dependency:  

    From: Scala IDE for Eclipse dev support 4.0.0.m2-2_11-201405271306-a781482 (org.scala-ide.sdt.dev.feature.feature.group 4.0.0.m2-2_11-201405271306-a781482)  

    To: org.scala-ide.sdt.spy [4.0.0.m2-2_11-201405271306-a781482]  

 

 

 

按照此人的博客, http://blog.csdn.net/daemonpei/article/details/7591631

 

下载 eclipse indigosr2版,安装的时候倒是不报上述错误,但是安装到60%多时,提示安装problem而退出。。。。

 

 

 

人品问题吗,那采用c方式吧.......

 

 

 

 

 

2 介绍下方式scala ide(基于Eclipse 4.3)

 

 

 

a) 本机已经安装好了Scala 2.11.1

 

b) 下载地址: http://scala-ide.org/download/sdk.html  这里我下载的是For Scala 2.11.1 window 32版

 

c) 解压后双击 eclipse.exe

 

d) 剩下的流程就和eclipse创建java工程和java文件类似了,

 

   在scala ide内,new scala project,在工程内, new scala object(注意不要new scala class),类比于创建 .java文件而不是创建.class文件

 

   否则你创建的文件是无法执行的。

 



 

 

 

 

 

方式Intellij IDEA 免费版 没有使用过

 

/article/4045052.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: