Changes between Version 172 and Version 173 of GIS/InstallationGuidelines/Linux


Ignore:
Timestamp:
07/15/13 12:20:22 (8 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIS/InstallationGuidelines/Linux

    v172 v173  
    7373[http://docs.geoserver.org/stable/en/user/production/java.html Update]: As of version 2.0, a Java Runtime Environment (JRE) is sufficient to run !GeoServer. !GeoServer no longer requires a Java Development Kit (JDK). Also note, OpenJDK does not work optimally with !GeoServer.
    7474
    75 for ubuntu 10.x
    76 
     75for Debian 7 Wheezy:
     76{{{
     77# Remove OpenJDK & dependent packages
     78apt-get remove openjdk-6-jre-lib
     79# Install a fake package to tell Debian that a valid Java is installed
     80wget http://babel.ls.fi.upm.es/~vpablos/others/packages/debian/oracle-java-pkg-for-debian_1.0.4_all.deb
     81dpkg -i oracle-java-pkg-for-debian_1.0.4_all.deb
     82# Download Sun Java via Browser (need to accept T&C)
     83# http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html
     84http://download.oracle.com/otn-pub/java/jdk/7u25-b15/server-jre-7u25-linux-x64.tar.gz
     85cd /usr/lib/jvm
     86tar zxvf /tmp/server-jre-7u25-linux-x64.gz
     87ln -s /usr/lib/jvm/jdk1.7.0_25 /usr/lib/jvm/java-sun
     88rm /usr/bin/java
     89ln -s /usr/lib/jvm/java-sun/bin/java /usr/bin/java
     90rm /usr/bin/javac
     91ln -s /usr/lib/jvm/java-sun/bin/javac /usr/bin/javac
     92
     93vi /etc/environment
     94JAVA_HOME=/usr/lib/jvm/java-sun
     95export JAVA_HOME
     96}}}
     97
     98or,
     99
     100for ubuntu 10.x:
    77101{{{
    78102vim /etc/apt/sources.list
     
    88112or,
    89113
    90 for debian
     114for debian 6 Squeeze
    91115{{{
    92116vim /etc/apt/sources.list
     
    11914332-bit:
    120144{{{
    121 cd /usr/lib/jvm/java-6-sun
     145cd /usr/lib/jvm/java-sun
    122146wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-i586-jdk.bin
    123147wget http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-i586-jdk.bin
     
    13215664-bit:
    133157{{{
    134 cd /usr/lib/jvm/java-6-sun
     158cd /usr/lib/jvm/java-sun
    135159wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64-jdk.bin
    136160wget http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-amd64-jdk.bin
     
    146170If you installed JRE (sudo sh on Ubuntu)
    147171{{{
    148 cd /usr/lib/jvm/java-6-sun/jre
     172cd /usr/lib/jvm/java-sun/jre
    149173wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64-jre.bin
    150174sh jai-1_1_3-lib-linux-amd64-jre.bin