New Oracle Java 11 installer for Ubuntu or Linux Mint (uses local Oracle Java .tar.gz)

As we all know, Oracle Java requires a login to an Oracle account to download most versions (except Oracle Java 12). Not long ago, I created Oracle Java 11 and 12 installer packages (Web Upd8 based packages), and PPA for Ubuntu and Linux Mint. Since it is no longer possible to download Oracle Java 11 directly from Oracle, the installer no longer works, so I created a new installer that requires the user to create an Oracle account and then download the Oracle Java 11 .tar.gz archive file (same version as installation Program) and put the archive in /var/cache/oracle-jdk11-installer-local/ . After that you can install oracle-java11-installer-local Software package that will set up Oracle Java 11 for you.
Everything else works as before. You can install oracle-java11-set-default-local Package to set Oracle Java 11 as the default (not only using .jinfo files and update-alternatives to set it as default, but also exporting the JAVA_HOME environment variable, etc.).
This is the only way I can solve now, because Oracle now requires users to create an account and log in 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 because it no longer works. I recommend removing it and using the new oracle-java11-installer-local package. It’s even better to switch from Oracle Java to OpenJDK or other JDK builds because Oracle now uses a commercial license and you can only use Java for development and testing for free, but using Java in production costs money.
The Oracle Java 12 installer package is still available, so I haven’t created a “local” installer for it, but when it stops running, I will create a similar package. Related information: Install the latest OpenJDK 12, 11, or 8 in Ubuntu, Debian or RHEL built with Zulu OpenJDK
These are step-by-step instructions for installing Oracle Java 11 using the new “oracle-java11-installer-local” package:

1. Create an Oracle account at And log in
2. download Oracle JDK 11 .tar.gz archive. Make sure the Oracle JDK version you downloaded matches oracle-java11-installer-local package Version. E.g. The installer is currently at version 11.0.3, so it can be used to install Oracle JDK 11.0.3.
3. create one /var/cache/oracle-jdk11-installer-local/ Folder, and then copy the Oracle JDK 11 .tar.gz to that folder.
For example, create /var/cache/oracle-jdk11-installer-local/ Folder, then use the following command to copy jdk-11.0.3_linux-x64_bin.tar.gz to that folder (from the current directory):

                        sudo mkdir -p /var/cache/oracle-jdk11-installer-local/
sudo cp jdk-11.0.3_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/

4. Clear the old oracle-java11-installer Software package (if installed):

                        sudo apt purge oracle-java11-installer

5. Add Linux Uprising Java PPA (works on Debian, Ubuntu, Linux Mint, Pop! _OS, base OS and any other Debian or Ubuntu based Linux distribution) and install oracle-java11-installer-local Package to set up Oracle Java 11:

                        sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt install oracle-java11-installer-local

6. This is optional. Install using oracle-java11-set-default-local , Which makes Oracle JDK 11 the default:

                        sudo apt install oracle-java11-set-default-local


Related Posts