-
Notifications
You must be signed in to change notification settings - Fork 1
Java8_Ubuntu14
datadavev edited this page May 26, 2017
·
1 revision
The PPA has the instructions, more detail at Redmine #7905.
Basically:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config keytool
- Edit
/etc/init.d/tomcat7:
find_openjdks()
{
for jvmdir in /usr/lib/jvm/java-8-openjdk-*
do
if [ -d "${jvmdir}" -a "${jvmdir}" != "/usr/lib/jvm/java-8-openjdk-common" ]
then
OPENJDKS=$jvmdir
fi
done
for jvmdir in /usr/lib/jvm/java-7-openjdk-*
do
if [ -d "${jvmdir}" -a "${jvmdir}" != "/usr/lib/jvm/java-7-openjdk-common" ]
then
OPENJDKS="${OPENJDKS} ${jvmdir}"
fi
done
for jvmdir in /usr/lib/jvm/java-6-openjdk-*
do
if [ -d "${jvmdir}" -a "${jvmdir}" != "/usr/lib/jvm/java-6-openjdk-common" ]
then
OPENJDKS="${OPENJDKS} ${jvmdir}"
fi
done
}
-
Make Apache jk module use openjdk-1.8, in
/etc/libapache2-mod-jk/workers.propertiesor/etc/apache/workers.properties file:workers.java_home=/usr/lib/jvm/java-8-openjdk-amd64 -
Restart
Apache2 -
Restart
Tomcat7
This material is based upon work supported by the National Science Foundation under Grant Numbers 083094 and 1430508.
Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.