woodcockj
Posts: 2
Joined: Mon May 29, 2017 12:09 am

How to install Oracle jdk-8u333

Sat Jul 09, 2022 8:15 pm

Does anyone know how to install Oracle jdk-8u333 on Pi3 or Pi4?
I'm running the latest version of 64 bit Raspberry Pi OS on both a Pi 3B and a Pi 4.
I'm using jdk-8u333-linux-arm32-vfp-hflt.tar.gz
The installation instructions I have tried are these:

sudo tar zxvf jdk-8u333-linux-arm32-vfp-hflt.tar.gz -C /opt
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_333/javac 1
sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_333/java 1
sudo update-alternatives --config javac
sudo update-alternatives --config java

But when I execute:
java -version
javac -version

I get an error that says it can't find java or javac.

Does anyone know how to do this?

Joop99
Posts: 98
Joined: Fri Jul 23, 2021 1:23 pm

Re: How to install Oracle jdk-8u333

Sat Jul 23, 2022 2:35 pm

I don't know, do you need specific this version of Oracle java? There is OpenJDK 8u312 available via the utility "Add/Remove Software".

jj_0
Posts: 285
Joined: Wed Jul 11, 2012 7:07 am

Re: How to install Oracle jdk-8u333

Sun Jul 24, 2022 11:59 am

You say you are running Raspberry Pi 64 bit OS but you are installing jdk-8u333-arm32 which is for 32 bit OS.
Why are you not installing jdk-8u333-linux-aarch64.tar.gz (from https://www.oracle.com/java/technologie ... loads.html)?

knute
Posts: 808
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas

Re: How to install Oracle jdk-8u333

Sat Jul 30, 2022 4:46 pm

Java 8 is long deprecated. Java 17, the long term support version is in the repository, just load that.

trejan
Posts: 4742
Joined: Tue Jul 02, 2019 2:28 pm

Re: How to install Oracle jdk-8u333

Sat Jul 30, 2022 5:13 pm

knute wrote:
Sat Jul 30, 2022 4:46 pm
Java 8 is long deprecated.
Oracle has said Java 8 is supported indefinitely for personal usage and will have at least 18 months notice if they change their mind. The latest update was only a couple weeks ago.
knute wrote:
Sat Jul 30, 2022 4:46 pm
Java 17, the long term support version is in the repository, just load that.
Some stuff is only compatible with Java 8. I've got a few "enterprise" tools that require it which means keeping a VM around just to run them. It is annoying.

knute
Posts: 808
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas

Re: How to install Oracle jdk-8u333

Tue Aug 02, 2022 3:25 pm

woodcockj wrote:
Sat Jul 09, 2022 8:15 pm
Does anyone know how to install Oracle jdk-8u333 on Pi3 or Pi4?
I'm running the latest version of 64 bit Raspberry Pi OS on both a Pi 3B and a Pi 4.
I'm using jdk-8u333-linux-arm32-vfp-hflt.tar.gz
The arm32 version won't run on Raspi OS 64. Download the aarch64 version and try that.

Does the software you are trying to run refuse to run under a later version? One of Java's features is that software created for an earlier version will still run on a later one.

Return to “Java”