[Live-demo] OpenJDK

Sebastiaan Couwenberg sebastic at xs4all.nl
Wed Mar 23 15:22:12 PDT 2016


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

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



More information about the Osgeolive mailing list