- Platform information:
- Hardware: Raspberry Pi 4B (ARM64) / 4G RAM
- OS: CentOS 8 (64-bits)
I purchased a Raspberry Pi 4 to replace my old Pi3B with OpenHABian; however, I’m having issues to install Java 11.
I’m aware from the prerequisites (Installation Overview | openHAB) that I Zulu is the recommended version and I should not install the 64-bit Java version, even though my OS is 64-bits.
The first issue I faced is the RPM repository only includes versions 15, 16, and 17 for ARM64. So I had to try the manual installation.
Next, Zulu only provides builds for CentOS x86, not for ARM.
I tried a more general search (excluding the OS and with the JDK) and found ARM 32-bit HF (zulu11.50.19-ca-jdk11.0.12-linux_aarch32hf.tar) and ARM 32-BIT SF (zulu11.50.19-ca-jdk11.0.12-linux_aarch32sf.tar), but I haven’t figured out which of the two versions is the right one for Rasperry Pi ARM.
I downloaded both of them to my Mac, but they are downloaded in .tar format, not the .tar.gz published on the official page, so the checksum doesn’t match. Nonetheless, I compressed them using gzip and transferred to CentOS via SFTP to a folder I created for SFTP users (/data/sftpuser/upload/). First I decompressed the HF version with the following command:
tar -xzvf /data/sftpuser/upload/zulu11.50.19-ca-jdk11.0.12-linux_aarch32sf.tar.gz
But when I executed
-bash: zulu11.50.19-ca-jdk11.0.12-linux_aarch32hf/bin/java: No such file or directory
The file is there, though:
[root@OpenHAB-Server upload]# cd zulu11.50.19-ca-jdk11.0.12-linux_aarch32hf/bin/ [root@OpenHAB-Server bin]# ls jar java javadoc jcmd jdb jdeps jhsdb jinfo jlink jmod jrunscript jstack jstatd pack200 rmid serialver jarsigner javac javap jconsole jdeprscan jfr jimage jjs jmap jps jshell jstat keytool rmic rmiregistry unpack200
Exactly the same story happened with the SF version.
I checked Oracle Java (https://java.com/en/download/help/linux_install.html#rpm), but it only seems to include versions 7.0 and 8.0
I would appreciate some guidance.