官术网_书友最值得收藏!

Installing Scala on your computer

An excellent resource for Scala installation on your computer is the Scala official page at https://www.scala-lang.org/download/. It mentions how important it is to make sure that Java JDK 8 is installed on your machine. This can be checked by running the following command:

$ java -version

If it is missing or if you have an older version of JDK, please follow the instructions on Java SE downloads from https://www.oracle.com/technetwork/java/javase/downloads/index.html for your OS. Open JDK (http://openjdk.java.net/install/) is another resource for installing JDK.

Please note that a higher version of Java might work fine as well; however, the examples provided in this book have only been tested on Java 8.

A successfully installed JDK 8 should output something similar to the following code:

$ java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

$ javac -version

javac 1.8.0_181
主站蜘蛛池模板: 永昌县| 尉氏县| 汤阴县| 恭城| 凤山县| 霍山县| 南郑县| 巨野县| 二手房| 合肥市| 禄劝| 武冈市| 井陉县| 嵊泗县| 呈贡县| 台中县| 上高县| 吉水县| 应城市| 通城县| 禹州市| 阳朔县| 淳化县| 和田市| 白沙| 长顺县| 卢氏县| 固镇县| 盐山县| 恭城| 石泉县| 南川市| 苗栗县| 屯昌县| 闵行区| 卓资县| 瓮安县| 安福县| 陇川县| 郁南县| 柳林县|