Is there a way to install Oracle Java 8 on Ubuntu 19.04?
The webupd8team/java
ppa is empty at the time writing.
Is there a way to install Oracle Java 8 on Ubuntu 19.04?
The webupd8team/java
ppa is empty at the time writing.
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.
install_java.sh: 24: install_java.sh: Syntax error: "(" unexpected
Jul 21, 2019 at 3:09
$ sudo apt-get install openjdk-8-jdk
. OpenJDK is completely open source and can be used it freely.
Jul 24, 2019 at 11:16
Did you try installing headless jdk? as following?
sudo dpkg --configure -a
sudo apt-get install openjdk-8-jdk-headless -y --force-yes