[vc_row][vc_column][vc_column_text]Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages, enabling Java and other programmers to be more productive. Existing Java code and programmer skills are fully re-usable. Scala programs run on the Java VM, are byte code compatible with Java so you can make full use of existing Java libraries or existing application code. You can call Scala from Java and you can call Java from Scala, the integration is seamless.
In this post, we show how to install Scala on pcDuino.
[/vc_column_text][vc_tour][vc_tab title=”Install Java” tab_id=”1402196855-1-60″][vc_column_text]Scala runs on top of Java. So we need to install java JDK first. Please refer to:
How to Install JDK 8 on pcDuino
Note: We have found that Scala has issue with OpenJDK 6.[/vc_column_text][/vc_tab][vc_tab title=”Install Scala” tab_id=”1402196855-2-42″][vc_column_text]At the time of writing this tutorial, the standard package installation on pcDuino ($sudo apt-get install scala) will install version 2.9, which is NOT recommended by Bruce Eckel’s Atomic Scala.
We can go to the main download site for Scala to download the desired version. For version 2.11, we end up with the following command to download:
$wget http://downloads.typesafe.com/scala/2.11.1/scala-2.11.1.tgz?_ga=1.57716202.1161215122.1402189827 $cpy scala* scala.tgz $tar zxvf s*.tgz
[/vc_column_text][/vc_tab][vc_tab title=”Test Drive” tab_id=”1402208702627-2-0″][vc_column_text][/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.