Task #7905
Story #6753: Upgrade production environment to use Ubuntu 14.04
Install open-jdk-8 on Ubuntu 14.04
History
#1 Updated by Jing Tao about 8 years ago
Rob and I discussed the process to upgrade the system. We think those steps can be done manually.
I searched on the internet and found people always installed openjdk 1.8 through a ppa:
1. sudo add-apt-repository ppa:openjdk-r/ppa
(if the add-apt-repostiory command is not found, please do "sudo apt-get install software-properties-common")
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
#2 Updated by Jing Tao about 8 years ago
Make system use openjdk-1.8:
1. Make tomcat use openjdk-1.8 - at the /etc/init.d/tomcat7 file, change the function
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 the /etc/libapache2-mod-jk/workers.properties (or /etc/apache/workers.properties file):
workers.java_home=/usr/lib/jvm/java-8-openjdk-amd64Restart apache
Restart tomcat
#3 Updated by Jing Tao about 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
- translation missing: en.field_remaining_hours set to 0.0