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


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


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


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s