experience with ubantu & scala

1. install ubantu on vmware
2. install jdk 8

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

3. install eclipse luna

http://ubuntuhandbook.org/index.php/2014/06/install-latest-eclipse-ubuntu-14-04/

4. Install SBT, download latest package from http://www.scala-sbt.org/release/tutorial/Installing-sbt-on-Linux.html

and run the following commands

  1. wget <latest package>
  2. sudo dpkg -i repo-deb-build-0002.deb
  3. sudo apt-get update
  4. sudo apt-get install sbt

5. Set up Scala project for eclipse with Gradle

http://techs.studyhorror.com/gradle-scala-eclipse-project-i-181

plus, add


task wrapper(type: Wrapper) {
gradleVersion        =    '2.2.1'
garchiveBase        =    Wrapper.PathBase.PROJECT
archivePath        =    'config/gradle/wrapper/dist'
distributionBase    =    Wrapper.PathBase.PROJECT
distributionPath    =    'config/gradle/wrapper/dists'
jarFile            =     new File("${project.projectDir}/config/gradle/wrapper/gradle-wrapper.jar")
}

and on terminal run the task –  “gradle wrapper

6. Parallel computation with Scala. See Factorial code

Advertisements