Changes

Oracle Java for Linux

1,433 bytes added, 03:52, 12 June 2020
/* Trying to Keep Them Both: Newer Distributions Based on Debian */
The following lines were added (+) and removed (-):
=== Trying to Keep Them Both? ====== Trying to Keep Them Both: Newer Distributions Based on Debian ===Update: If you are running a modern Debian variant such as Ubuntu or Mint you should not go hacking away at symlinks from the command line.  Instead safely use "update-alternatives" which is explained on the [[Default Java on Mint Linux]] page.  This applies to Linux versions such as Mint 19.2 as an example (for time release reference). # Download the version you wish to run, for our example Oracle 8 from the file jre-8u181-linux-x64.tar.gz# Extract jre-8u181-linux-x64.tar.gz to /usr/local - you end up the the java binary in the path: /usr/local/jre1.8.0_181/bin# Add the java to the update-alternatives link group - sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/jre1.8.0_181/bin/java" 8# Then run update-alternatives Examples: sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/jre1.8.0_181/bin/java" 8 sudo update-alternatives --config java java -version java -jar ./program.jar <s>Don't have "update-alternatives" as a utility in your distribution? Read on...</s> === Trying to Keep Them Both: Other and older Distributions === Warning!  This (the process below) is problematic and requires more than doing the symlinks, however, here ya go...See also: [[Default Java on Mint Linux]]== Some Related Pages ==* [[Oracle Java for Linux]]* [[Default Java on Mint Linux]]* [[IBM Java Runtime Environment]]* [[Java Quick Starter]]
Bureaucrat, administrator
16,228
edits