简体   繁体   中英

Installing jdk 8 on Linux Mint

On a new installed Linux Mint 18.2 Cinnamon 64 bit distribution, typing in Terminal "java -version" gives the following results: % java -version The program "java" can be found in the following packages: * default-jre * gcj-5-jre-headless * openjdk-8-jre-headless * gcj-4.8-jre-headless * gcj-4.9-jre-headless * openjdk-9-jre-headless
Please, it is mandatory to remove all packets mentioned above, before installing jdk 8 on Linux Mint 18.2 64 bit?

Thank you, Daniel

Linux Mint 18.2 and above I believe the default JDK is version 8.

The easiest way to install it is go to Menu->Administration->Software Manager and search for JDK . Install the Default-jdk , or you can look for the Openjdk-8-jdk . Also install the -doc too if you need that.

EDIT: from either the Software Manager or the Synaptic Package Manager you can remove any older versions.

You don't have to deinstall the existing jdk, just download, unzip and install any version you'd like. Like so:

cd /my/download/location/for/java/zip/file
unzip java-zip-file.zip
mv java-unzipped-folder /some/path/to/your/java/versions/.

..and update your .bashrc -file or .profile -file to include the newest java-version

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM