Search Suggest

Install Any Oracle Java (JDK) Version In Ubuntu, Debian, Linux Mint Or Fedora With install-java.sh

"install-java.sh" is a Bash script for installing and setting up any Oracle Java Development Kit (JDK) version on Debian and Ubuntu based Linux distributions.

The script developer is says he's mainly using Ubuntu, and therefore the script was only tested on Ubuntu however, I used the script to install and set up Oracle Java on Fedora, and it worked without any issues. It might work on other Linux distributions too.

The install-java.sh script is quite versatile, allowing users to install any Oracle JDK major / minor version. You can use it to:

  • install the latest Oracle Java 11 LTS
  • install any Oracle Java 8 version, including Oracle Java demos and the JCE policy
  • install Oracle Java 7, 10 and other JDK versions that are now only available to Oracle Customers through My Oracle Support (requires support login)
  • install an Oracle Java build for a different architecture than the system the script runs on

Thanks to this, install-java.sh is a great alternative to the Oracle Java 8 PPA maintained by Web Upd8, or the Oracle Java 11/12 PPA which I maintain, allowing users to install not only the latest Oracle Java version, but any version they desire. And it works on Fedora and probably other Linux distributions too, and not just Ubuntu/Debian.

install-java.sh script features include:

  • you can automate the Java installation script
  • specify the installation directory (defaults to /usr/lib/jvm)
  • can install Oracle JDK demos and JCE policy files, which are available with Oracle Java up to version 8 (to install these, download the demos Linux .tar.gz and JCE policy .zip archives and place them in the same folder as the Oracle Java .tar.gz, then run the install command as usual, and it will pick up these, asking you if you want to install them)
  • can install a menu entry (shortcut) for Oracle Java Mission Control (JMC)
  • comes with an uninstall-java.sh script to uninstall any Java version installed using install-java.sh

Related:


Using install-java.sh to install Oracle Java in Debian, Ubuntu, Linux Mint and Fedora


Oracle Java Linux install script

Đăng nhận xét