Skip to content
gu10ng1t edited this page Mar 30, 2017 · 4 revisions

ScalaWiki is implemented mostly in Scala programming language. Scala is compiled into Java bytecode and runs on Java Virtual Machine (JVM).

Install JDK

JVM can be either JRE (Java Runtime Environment) or JDK (Java Development Kit). To run Java bytecode on JVM you need only JRE. JDK is needed to compile Java code (small part of Java code is present in ScalaWiki). JDK can be installed with Java library sources, which can be useful when you do development and want to look at library classes.

ScalaWiki requires at least Java version 1.8.

You can download JDK from Oracle or install it via your operating system package manager.

On Ubuntu or Debian you can install Oracle JDK via [this PPA] (https://launchpad.net/~webupd8team/+archive/ubuntu/java) with the following script

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list

# Accept license non-iteractive
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install -y oracle-java8-installer

# Make sure Java 8 becomes default java
apt-get install -y oracle-java8-set-default

You can verify installed java with the following commands:

$ java -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

$ javac -version
javac 1.8.0_77
Clone this wiki locally