Changes between Initial Version and Version 1 of GIS/InstallationGuidelines/Linux/Java/Debian7


Ignore:
Timestamp:
06/13/16 13:26:09 (6 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIS/InstallationGuidelines/Linux/Java/Debian7

    v1 v1  
     1== Installing Java for Debian 7 Wheezy ==
     2
     3{{{
     4# Remove OpenJDK & dependent packages
     5apt-get remove openjdk-6-jre-lib
     6# Install a fake package to tell Debian that a valid Java is installed
     7wget http://babel.ls.fi.upm.es/~vpablos/others/packages/debian/oracle-java-pkg-for-debian_2.0.0+r20140717_all.deb
     8dpkg -i oracle-java-pkg-for-debian_2.0.0+r20140717_all.deb
     9# Download Sun Java via Browser (need to accept T&C)
     10# http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html
     11http://download.oracle.com/otn-pub/java/jdk/7u80-b18/server-jre-7u80-linux-x64.tar.gz
     12mkdir /usr/lib/jvm
     13cd /usr/lib/jvm
     14tar zxvf /tmp/server-jre-7u80-linux-x64.tar.gz
     15ln -s /usr/lib/jvm/jdk1.7.0_80 /usr/lib/jvm/java-sun
     16rm /usr/bin/java
     17ln -s /usr/lib/jvm/java-sun/bin/java /usr/bin/java
     18rm /usr/bin/javac
     19ln -s /usr/lib/jvm/java-sun/bin/javac /usr/bin/javac
     20
     21vi /etc/profile.d/java
     22JAVA_HOME=/usr/lib/jvm/java-sun
     23export JAVA_HOME
     24}}}