OpenHAB 3 Java update

Anyone give me some guidance on how to update Java on OpenHAB.

Am trying to update from2.5 to 3 and really struggling my first attempt seem to failed this is my second attempt but for the life of me I can’t get Java to update to 11

I struggle with the coding so go easy :see_no_evil: I have read the supporting documents about upgrading but its not clear to me about how to actually install Java 11 am hoping someone can dumb it down for me.

I hope that updating Java to 11 will help me complete my install to OH3 as currently I can’t access the UI or anything else. But I can SSH in to the pi.

Any help would be helpful

Am working on a raspberry pi.

We need to know which operating system you use. Is it openhabian or raspberry OS.
As far as I know in openhabian there is a configuration option for upgrading Java, in raspberry OS you need to do it yourself on OS level.

If I remember correctly:
Install java 11 first:

sudo apt install openjdk-11-jdk 

Then update the system to use the new Java installation:

sudo update-alternatives --config java

No, please don‘t use OpenJDK. We strongly recommend Zulu 11.

We actually recommend openHABian.

1 Like