[Live-demo] OpenJDK

Alex M tech_dev at wildintellect.com
Wed Mar 23 16:32:17 PDT 2016


On 03/23/2016 03:22 PM, Sebastiaan Couwenberg wrote:
> On 03/23/2016 10:57 PM, Pieter du Plooy wrote:
>> If I install OpenJDK 8, will it break anything on an OsgeoLive install?
> 
> It shouldn't, but if it does you can change the java alternatives back
> to openjdk-7 with the update-java-alternatives utility [0] to switch the
> alternatives for all JRE executables not just /usr/bin/java.
> 
>  # update-java-alternatives -s java-1.7.0-openjdk-amd64
> 
> You should pass JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64 to
> Whitebox to have it use the non-default JRE and leave the other
> applications to use the default JRE configured in the alternatives system.
> 
> [0]
> http://manpages.debian.org/cgi-bin/man.cgi?query=update-java-alternatives
> 
> Please ignore the Ubuntu Java documentation [1], it says to use
> update-alternatives --config java, but this is inferior to
> update-java-alternatives.
> 
> [1] https://help.ubuntu.com/community/Java
> 
> Kind Regards,
> 
> Bas
> 

FYI I pull OpenJDK8 from a PPA for Trusty 14.04
https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa

sudo apt-add-repository ppa:openjdk-r/ppa

Enjoy,
Alex



More information about the Osgeolive mailing list