Changes between Version 219 and Version 220 of GIS/InstallationGuidelines/Linux


Ignore:
Timestamp:
06/13/16 13:24:17 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIS/InstallationGuidelines/Linux

    v219 v220  
    7777* [wiki:InstallationGuidelines/PostgreSQL#AddGeometrycolumntogis_location]
    7878== Java ==
    79 [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.
    80 
    81 for Debian 7 Wheezy:
    82 {{{
    83 # Remove OpenJDK & dependent packages
    84 apt-get remove openjdk-6-jre-lib
    85 # Install a fake package to tell Debian that a valid Java is installed
    86 wget http://babel.ls.fi.upm.es/~vpablos/others/packages/debian/oracle-java-pkg-for-debian_2.0.0+r20140717_all.deb
    87 dpkg -i oracle-java-pkg-for-debian_2.0.0+r20140717_all.deb
    88 # Download Sun Java via Browser (need to accept T&C)
    89 # http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html
    90 http://download.oracle.com/otn-pub/java/jdk/7u80-b18/server-jre-7u80-linux-x64.tar.gz
    91 mkdir /usr/lib/jvm
    92 cd /usr/lib/jvm
    93 tar zxvf /tmp/server-jre-7u80-linux-x64.tar.gz
    94 ln -s /usr/lib/jvm/jdk1.7.0_80 /usr/lib/jvm/java-sun
    95 rm /usr/bin/java
    96 ln -s /usr/lib/jvm/java-sun/bin/java /usr/bin/java
    97 rm /usr/bin/javac
    98 ln -s /usr/lib/jvm/java-sun/bin/javac /usr/bin/javac
    99 
    100 vi /etc/profile.d/java
    101 JAVA_HOME=/usr/lib/jvm/java-sun
    102 export JAVA_HOME
    103 }}}
    104 
    105 or,
    106 
    107 for ubuntu 10.x:
    108 {{{
    109 vim /etc/apt/sources.list
    110 #uncomment partner repository
    111 sudo apt-get update
    112 sudo apt-get install sun-java6-jre
    113 
    114 sudo emacs /etc/environment
    115 JAVA_HOME=/usr/lib/jvm/java-6-sun
    116 export JAVA_HOME
    117 }}}
    118 
    119 or,
    120 
    121 for debian 6 Squeeze
    122 {{{
    123 vim /etc/apt/sources.list
    124 # for sun-java packages in unstable
    125 deb http://ftp.debian.org/debian/ unstable non-free
    126 deb-src http://ftp.debian.org/debian/ unstable non-free
    127 
    128 apt-get update
    129 apt-get install sun-java6-jdk
    130 vim /etc/profile
    131 JAVA_HOME=/usr/lib/jvm/java-6-sun
    132 export JAVA_HOME
    133 }}}
    134 
    135 The Sun installer will present a license in a curses form.  Depending on your terminal emulator, arrow keys may not work for navigation.  If not, try !^f and !^b to navigate to the <ok>, and enter to select.  Then you'll be asked to accept (or not) the license -- again use !^f or !^b to move to <yes> and hit enter.
    136 
    137 or:
    138  * [http://java.sun.com/javase/downloads/widget/jdk6.jsp Download the JDK] & install it:
    139 {{{
    140 cd /usr/local
    141 sh ~/jdk-6u21-linux-i586.bin
    142 ln -sf /usr/local/jdk1.6.0_21 /usr/local/java
    143 vim /etc/profile
    144 JAVA_HOME=/usr/local/java
    145 export JAVA_HOME
    146 }}}
     79[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. As of version 2.10, Jave 8 is required.
     80
     81* [[GIS/InstallationGuidelines/Linux/Java/Debian8|Debian 8 Jessie]]
     82* [[GIS/InstallationGuidelines/Linux/Java/Debian7|Debian 7 Wheezy]]
     83* [[GIS/InstallationGuidelines/Linux/Java/Debian6|Debian 6 Squeeze]]
     84* [[GIS/InstallationGuidelines/Linux/Java/Ubuntu10|Ubuntu 10]]
    14785
    14886Install the JAI extensions (improves performance for !GeoServer WMS), the downloads available are listed [https://jai.dev.java.net/binary-builds.html here]