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?
Re: How to install Oracle jdk-8u333
I don't know, do you need specific this version of Oracle java? There is OpenJDK 8u312 available via the utility "Add/Remove Software".
Re: How to install Oracle jdk-8u333
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)?
Why are you not installing jdk-8u333-linux-aarch64.tar.gz (from https://www.oracle.com/java/technologie ... loads.html)?
Re: How to install Oracle jdk-8u333
Java 8 is long deprecated. Java 17, the long term support version is in the repository, just load that.
Re: How to install Oracle jdk-8u333
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.
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.
Re: How to install Oracle jdk-8u333
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.