Skip to content
Gordon Guthrie edited this page Jun 12, 2017 · 4 revisions

Centos7

Download the appropriate java rpms from this page: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

jdk-8u131-linux-x64.rpm
jdk-8u131-linux-x64-demos.rpm

The demos are needed to get the appropriate GUI components for erlyberly

Install them with:

sudo rpm -ivh jdk-8u131-linux-x64.rpm 
sudo rpm -ivh jdk-8u131-linux-x64-demos.rpm 

You now have multiple versions of java installed. Maven will compile erlyberly but it won't run as per the one-liner - you need to specify the version of java to use explicitly like so:

/usr/java/jdk1.8.0_131/bin/java -jar target/erlyberly-0.6.9-SNAPSHOT-runnable.jar

Ubuntu

On Ubuntu using apt-get.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Mac OSX

Using homebrew, from http://stackoverflow.com/a/32811065.

brew update
brew tap caskroom/cask
brew install Caskroom/cask/java

If you see an error on OSX when building that looks something like ...Unsupported major.minor version 51.0... make sure JAVA_HOME is in your path:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/#{your_jdk_version}.jdk/Contents/Home

where #{your_jdk_version} is your JDK version. (ex. jdk1.8.0_102)

Put it somewhere helpful for you. (ex. ~/.bash_profile)

Clone this wiki locally