Search Suggest

New Oracle Java 11 Installer For Ubuntu, Debian Or Linux Mint (Using Local Oracle Java .tar.gz)

Oracle Java 11 local installer for Ubuntu or Linux Mint

As many of you already know, Oracle Java requires logging in to an Oracle account to download most versions (all except the latest Oracle Java release). A while back I created Oracle Java 11 and 12 installer packages (based on the package by Web Upd8), and a PPA for Ubuntu and Linux Mint.

Since Oracle Java 11 can't be directly downloaded from Oracle anymore, the installer no longer works, so I created a new installer that requires the user to create an Oracle account, download the Oracle Java 11 .tar.gz archive (the same version as the installer), and place the archive in /var/cache/oracle-jdk11-installer-local/. After this, you can install the oracle-java11-installer-local package, and it will set up Oracle Java 11 for you.

Everything else works as before. You can install the oracle-java11-set-default-local package to set Oracle Java 11 as default for example (not only set it as default using a .jinfo file and update-alternatives, but also export the JAVA_HOME environment variable, etc.).

This was the only way I could think of to work around the fact that Oracle now requires users to create an account and login to download most Oracle Java versions. If you can think of a better way, please let me know!

I will delete the old oracle-java11-installer package since it no longer works. I recommend removing it, and using the new oracle-java11-installer-local package. Or better yet, switch from Oracle Java to OpenJDK or some other JDK build, since Oracle now uses a commercial license, and you can only use Java at no cost for development and testing, but it requires a fee to use it in production.

Related:


These are step-by-step instructions for installing Oracle Java 11 using the new "oracle-java11-installer-local" package:

إرسال تعليق