How to install Oracle Java 8 on Ubuntu 19.04 [duplicate]

I just upgraded to Ubuntu 19.04 on Sunday and had this exact same problem the webupd8team PPA was removed due to the recent Oracle license changes.

I solved the problem using this script from GitHub: install-java.sh

It is a Bash script that did a professional install of Oracle JDK 1.8_201 using the files I downloaded from Oracle's website. I have just used it today and selected yes to everything. It works like a charm on Ubuntu 19.04. I ran with with the following files that I downloaded from Oracle:

-rwxrwxrwx 1 don don      8409 Sep 26  2018 jce_policy-8.zip
-rwxrwxrwx 1 don don  58807261 Jan 21 22:56 jdk-8u201-linux-x64-demos.tar.gz
-rwxrwxrwx 1 don don 191817140 Jan 21 22:50 jdk-8u201-linux-x64.tar.gz

It installs JDK into /usr/lib/jvm and adds the programs (java, javac, etc.) to /usr/bin, and will update or add JAVA_HOME to your bashrc file.

I tested the installation by running a GUI Java program from my desktop. Everything is working perfectly.