Scala outlines, installs Scala, and integrates the development environment Scala Eclipse

Source: Internet
Author: User
Tags scala ide

First, Scala overview can expand

? Object Oriented
? function-type programming


< Span style= "font-family: Microsoft Jacob Black; Color:rgb (255,0,0) "> compatible with Java
Interop


  Syntax concise
? code line short
? ? abstract control

< Span style= "font-family: Microsoft Jacob Black; Color:rgb (255,0,0) ">
statically typed
can examine
secure refactoring


support concurrency control
Customize other control structures


Ii. installation of Scala

Ide
Eclipse (native support, use more complex)
IntelliJ (expensive)
NetBeans (program reliable but plug-in cumbersome)

Cmd
Invoke the Scala interpreter via CMD
Convenient, simple and easy to get started

Operating environment: Win7+jdk7+scala2.11.6

1. install Java and Configure the Java environment


2, Download unzip Scala:http://www.scala-lang.org/download/
scala-2.11.6.msi


3, installation and Configuring the Scala environment

/


4, start cmd, run scala-version view version information





III. integrated development environment Scala Eclipse

1. Download IDE

Http://downloads.typesafe.com/scalaide-pack/4.0.0.vfinal-luna-211-20150305/scala-SDK-4.0.0-vfinal-2.11-win32.win32.x86.zip

  • Eclipse 4.4.2 (Luna)
  • Scala IDE 4.0.0
  • SBT 0.13.6
  • Scala Worksheet 0.2.6
  • Play Framework Support 0.4.6
  • Scalatest Support 2.9.3
  • M2eclipse-scala Maven connector 0.4.3
  • Access to the full Scala IDE ecosystem

2, decompression scala-sdk-4.0.0-vfinal-2.11-win32.win32.x86.zip

3 . Enter the Eclipse directory and double-click Eclipse.exe:

There will be a failed to create the Java Virtual machine error.

Modify the Eclipse.ini content as follows and save.

-xmx512m-xms128m-xx:maxpermsize=128m-xx:permsize=64m

-xms128m
Represents the JVM heap (heap memory) minimum size 128MB, initial allocation
-xmx512m
Represents the maximum allowable size of the JVM heap (heap memory) of 256MB, on demand.

-XX:PERMSIZE=64MB minimum size, initial allocation
-XX:MAXPERMSIZE=256MB maximum allowable allocation size, on demand, too small will cause: Java.lang.OutOfMemoryError:PermGen space


4 . Double-click Eclipse.exe, specify workspace, open Eclipse, and create a new Scala project.







Then create a new package and create a new Scala Class.





At this point, it is possible to develop accordingly.








Scala outlines, installs Scala, and integrates the development environment Scala Eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.