Scala的下载安装与验证

  • 下载安装
    • Scala官网

    1. 地址:http://www.scala-lang.org/download/
      • 三选一 

        • Download Scala 2.11.4 binaries for your system
          • 直接安装Scala
          • 国内下比较慢,华军软件园有的下。http://www.onlinedown.net/soft/33429.htm
        • Get started with Typesafe Activator Typesafe Activator is a browser-based or command-line tool that helps developers get started with Scala。
          • 不知道什么东东,但说的好像是支持Play Framework, Akka and Scala的运行
          • http://www.typesafe.com/platform/getstarted?_ga=1.160890811.747405756.1416813759
        • Install one of the Scala IDEsThe Scala IDE (based on Eclipse), IntelliJ IDEA with the Scala plugin,or NetBeans IDE with the Scala plugin.
          • 安装集成在IDE的支持工具
          • 可以在eclipse下安装,在Eclipse的Marketplace,搜索Scala,找到The Scala IDE for Eclipse。http://blog.csdn.net/chszs/article/details/9393813
  • 验证

    • 直接安装的
      • 51cto地址:http://developer.51cto.com/art/200909/154647.htm

      1. 本Scala快速入门参考了《First Steps to Scala》的内容。下面开始:

        我先大致根据这篇文章写一些自己的理解,让想学Scala的同学有个感性认识。

        读者对象:有Java经验的工程师

        第一步:下载和安装Scala

        官网下载并接压缩,像安装ANT或MAVEN之类的那样,把解压后的bin路径加到path里面去就可以了。

        在命令行模式下输入Scala

        cmd 写道

        1. C:\Documents and Settings\19002850>scala  
        2. Welcome to Scala version 2.7.5.final (Java HotSpot(TM) Client VM, Java 1.6.0_13)  
        3. .  
        4. Type in expressions to have them evaluated.  
        5. Type :help for more information.  
        6.  
        7. scala>  
        8.  

        如果你看到scala提示符,那么恭喜你,说明Scala安装成功了。

    • ScalaIDE
      • 在Eclipse新建Scala Project,名为ScalaDemo。

        在ScalaDemo新建Scala Object,名为Hello,内容如下:

        object Hello{

            def main(args :Array[String]){

             println("Hello world!");

            }

        }

         

        如图所示:

        选中Hello.scala,右键选择Run As -> Scala Application,则控制台输出Hello world!。

        证明ScalaIDE安装正确,运行正常。

      • http://blog.csdn.net/chszs/article/details/9393813

               
posted @ 2014-11-24 15:58  gasxia  阅读(888)  评论(0编辑  收藏  举报