Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Content Zone

 

 

geoserver

...

upgrade

We must be root for each of the following steps.

Code Block
sudo su - root

 

upgrade java

http://docs.geoserver.org/stable/en/user/production/java.html 

 

Code Block
# confirm that existing version of java (1.4.2)
java -version
 
# we want to install the latest JRE from oracle as recommended by geoserver
 

 

 

http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jre.html#install-64-rpm

Code Block
wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/7/jre-7-linux-x64.rpm"
rpm -ivh jre-7-linux-x64.rpm?AuthParam=1347904319_53c7d4517bc08e457c15c859a1ba216e

 

install JAI

http://download.java.net/media/jai/builds/release/1_1_3/

Code Block
wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64-jre.bin
cp jai-1_1_3-lib-linux-amd64-jre.bin /usr/java/jre1.7.0
cd /usr/java/jre1.7.0
sh jai-1_1_3-lib-linux-amd64-jre.bin

 

Update JAVA_HOME in tomcat config.

Code Block
# set JAVA_HOME so that it points to the correct java which should now be /usr/java/jre1.7.0
sudo vim /usr/share/tomcat5/conf/tomcat5.conf