Updating Java on SBC

Supporting Java SE version 7 and up
Post Reply
astrokeith
Phidgetsian
Posts: 10
Joined: Tue Sep 14, 2021 11:55 am
Contact:

Updating Java on SBC

Post by astrokeith »

Just got my first SBC4. My biggest issue seems to be that is running Java 8, and I need 11.
I have tried apt install default-jre (& jdk), but the version stays at 8 and the configure options says I have no choices.
Any help gratefully received!
User avatar
burley
Human-Cyborg Relations
Posts: 442
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary
Contact:

Re: Updating Java on SBC

Post by burley »

The SBC (at least until recently) runs a fairly old version of Debian so the package repository likely has out of date defaults. You can try searching for a newer version manually with apt-cache search or you can flash a new OS to your SBC. We just released support for Debian 11. You can download the new image file here as well as find instructions for flashing it:

https://www.phidgets.com/docs/OS_-_Phid ... to_SD_Card

Not sure if the default jdk is 11 there but it's more likely than your current version I suspect.
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com
User avatar
Patrick
Lead Developer
Posts: 3399
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Updating Java on SBC

Post by Patrick »

Yes, the new debian11 image includes Java 11.

-Patrick
astrokeith
Phidgetsian
Posts: 10
Joined: Tue Sep 14, 2021 11:55 am
Contact:

Re: Updating Java on SBC

Post by astrokeith »

Thanks all, yes flashed the new OS, and all is well (with compiling at least!)
I have another problem, but will start a new thread.
Keith
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests