Raspberry Pi Using Bundled Java

Can the Ignition’s bundled java be used on a RPi? I set the bash command to useBundledJre=true, but it still uses Rasbian Java 11.0.3

Our Java runtime for ARM does not include JavaFX right now, so it cannot be used for the client launchers.

edit: ah, I see you might be talking about the legacy launcher script instead?

No I’m using the client launcher. Since Rasbian Java 11.0.3 isn’t a version that Ignition supports, I will have to install another version. I’m guessing Zulu Embedded 8.

What version of Ignition is this?

7.9.12

Ok then yes, you want Java 8 instead of Java 11.

1 Like

How to install Zulu 8 on raspberry pi 3:

sudo mkdir /opt/jdk/
cd /opt/jdk
sudo wget http://cdn.azul.com/zulu-embedded/bin/zulu8.31.1.122-jdk1.8.0_181-linux_aarch32hf.tar.gz
sudo tar -xzvf /opt/jdk/zulu8.31.1.122-jdk1.8.0_181-linux_aarch32hf.tar.gz
sudo update-alternatives --install /opt/jdk/zulu8.31.1.122-jdk1.8.0_181-linux_aarch32hf.tar.gz 1
sudo update-alternatives --set java /opt/jdk/zulu8.31.1.122-jdk1.8.0_181-linux_aarch32hf.tar.gz
nano .profile
#copy this to the end of the file 
JAVA_HOME="/opt/jdk/zulu8.31.1.122-jdk1.8.0_181-linux_aarch32hf.tar.gz"
export JAVA_HOME
PATH="$JAVA_HOME/bin:$PATH"
control + O 
press enter
control + X
sudo visudo
#add this to the end of default declarations
Defaults env_keep +="JAVA_HOME"
control + O 
press enter
control + X
reboot
#check to see current java version
java -version

You should see

openjdk version "1.8.0_181"
OpenJDK Runtime Environment (Zulu 8.31.1.122-linux_aarch32hf) (build 1.8.0_181-b122)
OpenJDK Client VM (Zulu 8.31.1.122-linux_aarch32hf) (build 25.181-b122, mixed mode, Evaluation)

What’s wrong with the OpenJDK8 packaged by raspbian? I have a customer running Vision clients with v7.9.12 that way. Is there something it doesn’t support?

Not that I know of, when I set up Rasbian it used Java 11.0.3 version by default. It may be easier to switch it to OpenDJK8 then to Zulu, but I decided to go with Zulu arbitrarily. Definitely not an expert on this.