The other responses for some weird reason did not work for me. So, to install java 1.8 (from Oracle), I alternatively ran this:
1: Add Oracle’s PPA (Personal Package Archive):
sudo add-apt-repository ppa:webupd8team/java
2: Then update your package repository
sudo apt-get update
3: Install Oracle JDK 8:
sudo apt-get install oracle-java8-installer
That got it working for me. Now, when I run java -version, I get:
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode
For more details, see this post on Medium.com.
Answer from John Lexus on askubuntu.comVideos
installation - Java JRE 64-bit download for Windows? - Stack Overflow
Why is Java 15 the latest version of Java, yet Java 8 is the only version to download with out the JDK?
Thanks for your informative comment.
We now have authorization to generate executable binaraies with the Java Virtual Machine and then load your JAR into it.
Can you elaborate? Who is extending the authorization? And did something change with the JVM to make it smaller or more portable, thus allowing people to package it with their code?
More on reddit.comCan't download Java 8 without an Oracle account?
TPT: Download Java (JDK/JRE) without an Oracle Account
The other responses for some weird reason did not work for me. So, to install java 1.8 (from Oracle), I alternatively ran this:
1: Add Oracle’s PPA (Personal Package Archive):
sudo add-apt-repository ppa:webupd8team/java
2: Then update your package repository
sudo apt-get update
3: Install Oracle JDK 8:
sudo apt-get install oracle-java8-installer
That got it working for me. Now, when I run java -version, I get:
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode
For more details, see this post on Medium.com.
I don't know why you're not able to install openjdk from the ppa ppa:openjdk-r/ppa, maybe it has some problems. But if you want to install the Oracle Java, after you have extracted the folder with tar zxvf jre-8u73-linux-x64.tar.gz, you have to make a symbolic link to the executable, try with sudo ln -sv /path-to-extracted-folder/bin/java /usr/local/bin/java.
Might this be the download you are looking for?
- Go to the Java SE Downloads Page.
- Scroll down a tad look for the main table with the header of "Java Platform, Standard Edition"
- Click the JRE Download Button (JRE is the runtime component. JDK is the developer's kit).
- Select the appropriate download (all platforms and 32/64 bit downloads are listed)
I believe the link below will always give you the latest version of the 64-bit JRE https://www.oracle.com/java/technologies/downloads/