You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

For SHRINE to work properly, we recommend having at least Java JDK 1.8.0_161 installed. This will ensure that the underlying framework is in place for the SHRINE applications to function correctly. To setup Java's JDK, please follow these steps (running as the shrine / root user):

$ mkdir -p /opt/java
$ cd /opt/java
 
$ wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.tar.gz"
 
$ tar xzf jdk-8u161-linux-x64.tar.gz
  
$ chown -R root: jdk1.8.0_*
  
-- for JAVA
$ alternatives --install /usr/bin/java java /opt/jdk1.8.0_161/bin/java 1
  
-- for JAR
$ alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_161/bin/jar 1
 
-- for JAVAC
$ alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_161/bin/javac 1
$ alternatives --set javac /opt/jdk1.8.0_161/bin/javac
  
$ rm /opt/jdk-8u161*.tar.gz
$ echo "Setting JAVA variables…"
 
$ export JAVA_HOME=/opt/jdk1.8.0_161
$ export JRE_HOME=/opt/jdk1.8.0_161/jre
$ export PATH=$PATH:/opt/jdk1.8.0_161/bin:/opt/jdk1.8.0_161/jre/bin
  • No labels