Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For SHRINE to work properly, we recommend having at least Java JDK 1.8.0_161 162 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):

Code Block
languagebash
themerdark
$ mkdir -p /opt/java
$ cd /opt/java
 
$ wget --no-cookie -c-no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; 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