`
sillycat
  • 浏览: 2542785 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

scala(1)win7 Envirenment and Introduction

 
阅读更多
scala(1)win7 Envirenment and Introduction

1. build the envirenment
download the related files:
http://www.scala-lang.org/downloads/distrib/files/scala-2.9.1.final-devel-docs.tgz
http://www.scala-lang.org/downloads/distrib/files/scala-2.9.1.final-installer.jar
http://www.scala-lang.org/downloads/distrib/files/scala-2.9.1.final.zip

download the latest eclipse
http://download.actuatechina.com/eclipse/technology/epp/downloads/release/indigo/SR1/eclipse-jee-indigo-SR1-win32-x86_64.zip

It is said that eclipse 3.7 is not perfect supported. I still try the latest plugin with latest eclipse:
http://download.scala-ide.org/releases-29/stable/site

Unzip the file scala-2.9.1.final.zip to directory D:\tool\scala-2.9.1.final.

Add SCALA_HOME to system configuration. Add D:\tool\scala-2.9.1.final\bin to path in system.

Verify the installation with this command.
>scalac -version
Scala compiler version 2.9.1.final -- Copyright 2002-2011, LAMP/EPFL

>scala
scala>1 + 2

2. Try the first example with hello world
create a textual file with name hello.scala, the content is as follow:
object HelloWorld{
def main(args: Array[String]){
println("Happy Valenten's Day, Kiko.")
}
}
D:\work\scala>scala hello.scala
Happy Valenten's Day, Kiko.

3. Try with my IDE eclipse 3.7
After install the scala plugin, I will create the first scala project named easyscala. Then create the package named com.sillycat.easyscala.

After that, create a scala object named Love under that package. The codes are like this, and we can run as scala application in eclipse:
package com.sillycat.easyscala

object Love {

  def main(args: Array[String]) {
    println("Happy Valenten's Day, Kiko.")
  }

}

references:
http://www.scala-lang.org/
http://scala-ide.org/
http://scala-ide.org/download/current.html
http://www.scala-lang.org/node/310
http://willerce.com/post/windows-scala
http://www.oseye.net/kb/show/1945
http://www.scala-lang.org/downloads/distrib/files/website/doc/ProgrammingInScala.pdf
http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaReference.pdf
http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaOverview.pdf
http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaTutorial.pdf
http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaByExample.pdf


分享到:
评论

相关推荐

    scala2.11.4win64位安装包

    这个"scala2.11.4win64位安装包"是专为Windows 64位操作系统设计的Scala编程环境,版本号为2.11.4。这个版本提供了对Java虚拟机(JVM)的支持,使得开发者可以利用JVM的广泛生态系统。 Scala 2.11.x系列是该语言的...

    Scala and Spark for Big Data Analytics.pdf

    Chapter 1, Introduction to Scala, will teach big data analytics using the Scalabased APIs of Spark. Spark itself is written with Scala and naturally, as a starting point, we will discuss a brief ...

    A Brief Introduction to Scala

    1. **一等公民**:在Scala中,函数是一等公民,意味着它们可以像其他数据类型一样被赋值给变量、作为参数传递或作为返回值返回。 2. **函数声明的简洁语法**:Scala提供了一种紧凑的语法来定义函数表达式或lambda...

    scala-2.11.12 win msi 安装包

    这个压缩包提供的文件是"scala-2.11.12 win msi 安装包",适用于Windows操作系统,版本号为2.11.12。这个版本的Scala是官方发布的,虽然原官网下载可能较慢,但此压缩包提供了更便捷的获取途径。 Scala的主要特点...

    Scala and Spark for Big Data Analytics

    Scala and Spark for Big Data Analytics by Md. Rezaul Karim English | 25 July 2017 | ISBN: 1785280848 | ASIN: B072J4L8FQ | 898 Pages | AZW3 | 20.56 MB Harness the power of Scala to program Spark and ...

    scala-intellij-bin-2021.1.22.zip

    "scala-intellij-bin-2021.1.22.zip" 是一个包含IntelliJ IDEA的Scala插件的压缩包,版本号为2021.1.22,适用于IntelliJ IDEA的2021.1版本。 Scala插件是IntelliJ IDEA为了提升Scala开发体验而设计的,它提供了丰富...

    scala-sbt-scala编译工具

    Supports testing with ScalaCheck, specs, and ScalaTest. JUnit is supported by a plugin. Starts the Scala REPL with project classes and dependencies on the classpath Modularization supported with sub-...

    scala安装包-win

    scala-2.10.4.msi和scala-2.12.6 windows安装板,解压密码 cnmcsdn

    Scala考试题1

    1. **var、val 和 def 的区别**: - `var` 定义可变变量,可以多次赋值。 - `val` 定义不可变变量,一旦赋值后不能更改。 - `def` 用于定义函数,它不创建任何实例,只定义行为。 2. **trait(特质)和 abstract...

    2018 Scala for Java Developers: A Practical Primer

    Learn Scala is split into four parts: a tour of Scala, a comparison between Java and Scala, Scala-specific features and functional programming idioms, and finally a discussion about adopting Scala in...

    scala3 scala3 scala3 scala3 scala3

    Scala3,也被称为Scala 3或Dotty,是Scala编程语言的一个重大更新,旨在提高其简洁性、可读性和类型安全性。Scala3的发布标志着该语言的进一步成熟,它引入了一系列改进,旨在解决早期版本中的一些痛点,同时保持对...

    scala sdk scala-2.12.3

    1. **编译器**:Scala编译器将Scala源代码转换为Java字节码,使得程序可以在JVM上运行。2.12.3版本的编译器支持最新的语言特性,并对错误报告和编译速度进行了改进。 2. **标准库**:Scala的标准库提供了大量的类和...

    Data Structures and Algorithms with Scala

    《Data Structures and Algorithms with Scala》是一本专注于使用Scala语言探讨数据结构与算法的书籍。Scala是一种多范式编程语言,融合了面向对象和函数式编程的特性,它为理解和实现数据结构与算法提供了独特的...

    testing in scala

    Testing in Scala starts with an introduction of the Scala programming language, explains why project infrastructure is critical, and provides compelling reasons to use Scala testing frameworks to not ...

    Reactive.Programming.with.Scala.and.Akka.1783984341.epub

    Harness reactive programming to build scalable and fault-tolerant distributed systems using Scala and Akka About This Book Use the concepts of reactive programming to build distributed systems ...

    scala211-eclipse-plugin(4.4and4.5).zip

    1. **Scala 语言**: Scala 是一种多范式编程语言,结合了面向对象和函数式编程的概念。它的设计目标是提高代码的表达性和可维护性,并支持大规模并行计算。Scala 2.11 是 Scala 的一个主要版本,引入了新的特性、...

    scala-SDK-4.2.0-vfinal-2.11-win32.win32.x86

    1. Scala 编译器:负责将 Scala 源代码转换成 JVM 可执行的字节码。这个过程叫做编译,使得 Scala 程序可以在任何支持 Java 的平台上运行。 2. Scala 标准库:提供了各种基本数据类型、集合操作、控制结构以及与...

    scala-SDK-4.7.0-vfinal-2.12-win32.win32.x86_64

    Scala SDK 4.7.0 是一...总之,Scala SDK 4.7.0-vfinal-2.12-win32.win32.x86_64是Windows用户开发Scala应用程序的重要工具集,它包含了编译器、库、IDE支持和与Java的紧密集成,为开发者提供了高效和灵活的编程体验。

    Scala-IDE(for Eclipse Juno Scala 2.9)

    1. **语法高亮和代码补全**:Scala IDE提供了对Scala语法的高亮显示,以及智能的代码补全功能,帮助程序员快速编写和理解代码。 2. **类型推断和错误检查**:Scala的类型系统相对复杂,IDE能够实时检查代码,提供...

Global site tag (gtag.js) - Google Analytics