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

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
主站蜘蛛池模板: 石门县| 怀安县| 盐边县| 泸定县| 商河县| 尖扎县| 泰州市| 崇义县| 和硕县| 峡江县| 威远县| 辽源市| 奉新县| 乐清市| 金川县| 罗甸县| 阿瓦提县| 嵊州市| 德惠市| 嵊泗县| 宁城县| 吉木萨尔县| 木兰县| 手游| 德江县| 新营市| 凤庆县| 江永县| 陇西县| 安龙县| 商丘市| 长汀县| 车险| 武威市| 马鞍山市| 吉木萨尔县| 和硕县| 大新县| 泰兴市| 尼勒克县| 平昌县|