Hello!
I wonder why Raspberry Pi is still using old Java 8 for ARM 32-bit and 64-bit, when Java 11 for ARM 32-bit and 64-bit is now available from Azul Systems?
I'm using Pi4J to control the GPIO pins from web applications(Primefaces + Tomcat) and I'm switching now from Java 8 to Java 11.
https://www.azul.com/downloads/zulu-embedded/
-
- Posts: 2
- Joined: Fri Feb 01, 2019 1:23 pm
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
DanielMartensson wrote: ↑Fri Feb 01, 2019 1:26 pmHello!
I wonder why Raspberry Pi is still using old Java 8 for ARM 32-bit and 64-bit, when Java 11 for ARM 32-bit and 64-bit is now available from Azul Systems?
I'm using Pi4J to control the GPIO pins from web applications(Primefaces + Tomcat) and I'm switching now from Java 8 to Java 11.
https://www.azul.com/downloads/zulu-embedded/
OpenJDK11 will be in Buster release.
Debian, which Raspbian is a fork, are very conservative regards updating packages.
Take what I advise as advice not the utopian holy grail, and it is gratis !!
- HawaiianPi
- Posts: 7217
- Joined: Mon Apr 08, 2013 4:53 am
- Location: Aloha, Oregon USA
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Well there's that. Raspbian includes Oracle Java. They don't have a license to distribute anything from Azul Systems. Of course that doesn't explain why they are using an ancient version of Oracle Java 8 (1.8.0_65 is included, current version is 1.8.0_201).DanielMartensson wrote: ↑Fri Feb 01, 2019 1:26 pm... when Java 11 for ARM 32-bit and 64-bit is now available from Azul Systems?
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?
lots of pop-ups, and where is that annoying music coming from?
- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Spot onHawaiianPi wrote: They don't have a license to distribute anything from Azul Systems.
It's a bit of a pain to package and I don't keep track of their releases or which releases are worth the effort. Once in a while somebody will ask for a newer version of Java and I'll grab the latest version, but that doesn't happen very often.HawaiianPi wrote: Of course that doesn't explain why they are using an ancient version of Oracle Java 8 (1.8.0_65 is included, current version is 1.8.0_201).
It's probably not going to be updated anymore and Buster will only have OpenJDK. Unless there's some reason to ship newer versions of Oracle Java 8 & 9?
-
- Posts: 2
- Joined: Fri Feb 01, 2019 1:23 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
When will Raspberry Pi buster be released?fruitoftheloom wrote: ↑Fri Feb 01, 2019 5:50 pmDanielMartensson wrote: ↑Fri Feb 01, 2019 1:26 pmHello!
I wonder why Raspberry Pi is still using old Java 8 for ARM 32-bit and 64-bit, when Java 11 for ARM 32-bit and 64-bit is now available from Azul Systems?
I'm using Pi4J to control the GPIO pins from web applications(Primefaces + Tomcat) and I'm switching now from Java 8 to Java 11.
https://www.azul.com/downloads/zulu-embedded/
OpenJDK11 will be in Buster release.
Debian, which Raspbian is a fork, are very conservative regards updating packages.
- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
We're aiming to release for whenever Debian marks it stable, but in the past we've had a few months lag. Expecting it some time around the middle of the year.DanielMartensson wrote: ↑Mon Feb 04, 2019 10:54 amWhen will Raspberry Pi buster be released?fruitoftheloom wrote: ↑Fri Feb 01, 2019 5:50 pmDanielMartensson wrote: ↑Fri Feb 01, 2019 1:26 pmHello!
I wonder why Raspberry Pi is still using old Java 8 for ARM 32-bit and 64-bit, when Java 11 for ARM 32-bit and 64-bit is now available from Azul Systems?
I'm using Pi4J to control the GPIO pins from web applications(Primefaces + Tomcat) and I'm switching now from Java 8 to Java 11.
https://www.azul.com/downloads/zulu-embedded/
OpenJDK11 will be in Buster release.
Debian, which Raspbian is a fork, are very conservative regards updating packages.
- HawaiianPi
- Posts: 7217
- Joined: Mon Apr 08, 2013 4:53 am
- Location: Aloha, Oregon USA
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
The PPA from webupd8team I use updates Java when you update Raspbian. I've posted about it in the Java forums a few times.ShiftPlusOne wrote: ↑Mon Feb 04, 2019 8:09 amIt's a bit of a pain to package and I don't keep track of their releases or which releases are worth the effort. Once in a while somebody will ask for a newer version of Java and I'll grab the latest version, but that doesn't happen very often.
Here's one of my posts: https://www.raspberrypi.org/forums/view ... 0#p1400092
It's basically an installer script. Probably wouldn't bee too difficult to make something similar, or you could look into using the webupd8tem PPA.
In my experience, Oracle java is faster and more stable than OpenJDK. As far as not being updated any more, Oracle has been saying that for the last ten updates or so (the 1.8.0_201 update was very recent). ¯\_(ツ)_/¯It's probably not going to be updated anymore and Buster will only have OpenJDK. Unless there's some reason to ship newer versions of Oracle Java 8 & 9?
Haven't messed much with newer versions, because I mainly use Java for Minecraft, and Optifine still uses Java 8.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?
lots of pop-ups, and where is that annoying music coming from?
- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
It's not quite as bad as I made it seem, but it's still a hassle. There's a script which takes oracle's tarballs and spits out packages, which I'd prefer to relying on third parties. If people want it, I can set up a cronjob to look out for updates, package it up and put it in the repo as necessary. But again, I don't know if it's worth it. Seems like people who absolutely must have have the latest jre 8 can use the PPA. Or are they typically security updates which are actually important?HawaiianPi wrote: It's basically an installer script. Probably wouldn't bee too difficult to make something similar, or you could look into using the webupd8tem PPA.
From Oracle/OpenJDK 11, they're almost identical.HawaiianPi wrote: ↑Mon Feb 04, 2019 6:06 pmIn my experience, Oracle java is faster and more stable than OpenJDK. As far as not being updated any more, Oracle has been saying that for the last ten updates or so (the 1.8.0_201 update was very recent). ¯\_(ツ)_/¯
Haven't messed much with newer versions, because I mainly use Java for Minecraft, and Optifine still uses Java 8.
https://blogs.oracle.com/java-platform- ... -and-later
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Why not take the Azul package and run the Tomcat with that? I usually do that, having dropped Oracle Java long since due to license issues. Just configure $JAVA_HOME for the Tomcat.DanielMartensson wrote: ↑Fri Feb 01, 2019 1:26 pmHello!
I wonder why Raspberry Pi is still using old Java 8 for ARM 32-bit and 64-bit, when Java 11 for ARM 32-bit and 64-bit is now available from Azul Systems?
I'm using Pi4J to control the GPIO pins from web applications(Primefaces + Tomcat) and I'm switching now from Java 8 to Java 11.
https://www.azul.com/downloads/zulu-embedded/
Regards, Balin.
- DougieLawson
- Posts: 42177
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
The question should be "why does DebIan never upgrade a release except at at version change?"
Buster will have newer versions of lots of packages.
It's the DebIan way and Raspbian mostly follows their dogma.
Buster will have newer versions of lots of packages.
It's the DebIan way and Raspbian mostly follows their dogma.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Balin wrote: ↑Wed Feb 20, 2019 3:04 pmWhy not take the Azul package and run the Tomcat with that? I usually do that, having dropped Oracle Java long since due to license issues. Just configure $JAVA_HOME for the Tomcat.DanielMartensson wrote: ↑Fri Feb 01, 2019 1:26 pmHello!
I wonder why Raspberry Pi is still using old Java 8 for ARM 32-bit and 64-bit, when Java 11 for ARM 32-bit and 64-bit is now available from Azul Systems?
I'm using Pi4J to control the GPIO pins from web applications(Primefaces + Tomcat) and I'm switching now from Java 8 to Java 11.
https://www.azul.com/downloads/zulu-embedded/
ArchLinuxArm has version 11.02 of jre-openjdk & jdk-openjdk
Take what I advise as advice not the utopian holy grail, and it is gratis !!
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Dougie,
I believe the answer is more practical.
Debian attempts to offer a "stable" system. That does not just mean "stable" as in not crashing or having bugs but stable as in not changing all the time and breaking users setups.
To that end versions of all kind of programs can be a bit behind. Adopting the latest shiny thing every week may introduce differences in behavior or configuration that would break users systems if installed with an apt upgrade.
As a practical matter, all these version update take time for someone to package up and then test. Packages don't just have to work, they have to not break dependent packages.
So why don't you answer the question?The question should be "why does DebIan never upgrade a release except at at version change?"
Buster will have newer versions of lots of packages.
"Dogma" is not the answer. Or at least it implies it because of some unfounded religious/philosophical opinion.It's the DebIan way and Raspbian mostly follows their dogma.
I believe the answer is more practical.
Debian attempts to offer a "stable" system. That does not just mean "stable" as in not crashing or having bugs but stable as in not changing all the time and breaking users setups.
To that end versions of all kind of programs can be a bit behind. Adopting the latest shiny thing every week may introduce differences in behavior or configuration that would break users systems if installed with an apt upgrade.
As a practical matter, all these version update take time for someone to package up and then test. Packages don't just have to work, they have to not break dependent packages.
Memory in C++ is a leaky abstraction .
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Gentoo64 packages seem up to date.
It even includes GCC 8.2
https://github.com/sakaki-/gentoo-on-rpi3-64bit
It even includes GCC 8.2
https://github.com/sakaki-/gentoo-on-rpi3-64bit
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
jahboater wrote: ↑Sat Feb 23, 2019 8:26 amGentoo64 packages seem up to date.
It even includes GCC 8.2
https://github.com/sakaki-/gentoo-on-rpi3-64bit
ArchLinuxArm also has GCC 8.2

Take what I advise as advice not the utopian holy grail, and it is gratis !!
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
An update to 1.8.0_202 would be good as there a quite a few people running UniFi controller of a pi that are having issuesShiftPlusOne wrote: ↑Mon Feb 04, 2019 8:09 amIt's probably not going to be updated anymore and Buster will only have OpenJDK. Unless there's some reason to ship newer versions of Oracle Java 8 & 9?
https://community.ubnt.com/t5/UniFi-Wir ... -p/2668805
wirelessthings.net
OpenMicros.org
OpenMicros.org
- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Thanks for the heads up and the linkdpslwk wrote: ↑Mon Feb 25, 2019 1:43 pmAn update to 1.8.0_202 would be good as there a quite a few people running UniFi controller of a pi that are having issuesShiftPlusOne wrote: ↑Mon Feb 04, 2019 8:09 amIt's probably not going to be updated anymore and Buster will only have OpenJDK. Unless there's some reason to ship newer versions of Oracle Java 8 & 9?
https://community.ubnt.com/t5/UniFi-Wir ... -p/2668805
- HawaiianPi
- Posts: 7217
- Joined: Mon Apr 08, 2013 4:53 am
- Location: Aloha, Oregon USA
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Try the webupd8team PPA for keeping Oracle Java 8 up-to-date (from my post above).
HawaiianPi wrote: ↑Mon Feb 04, 2019 6:06 pmThe PPA from webupd8team I use updates Java when you update Raspbian. I've posted about it in the Java forums a few times.
Here's one of my posts: https://www.raspberrypi.org/forums/view ... 0#p1400092
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?
lots of pop-ups, and where is that annoying music coming from?
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Probably java 8 will remain the main jdk for quite long time. Pi0 is armv6 and java 8 is the last working version on this platform.
- ShiftPlusOne
- Raspberry Pi Engineer & Forum Moderator
- Posts: 6383
- Joined: Fri Jul 29, 2011 5:36 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
I'll admit I haven't checked, but I'd be very surprised if openjdk 11 didn't work on a pi 0.alnaseh wrote: Probably java 8 will remain the main jdk for quite long time. Pi0 is armv6 and java 8 is the last working version on this platform.
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
How do you come to that conclusion, Debian Buster offer ARMHF, admittedly ARMv7, but many packages which Debian list as ARMv7 do actually run on ARMv6.
Please provide proof of your conjecture !
Take what I advise as advice not the utopian holy grail, and it is gratis !!
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
openjdk 11 is available in Raspbian Buster, therefore it should work on any Raspberry Pi.
Unreadable squiggle
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Take what I advise as advice not the utopian holy grail, and it is gratis !!
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
Well, actually you stated that Debian have it. It doesn't always follow that Raspbian has it available, but in this case it doesfruitoftheloom wrote: ↑Sun Apr 28, 2019 11:01 am
Yep just stated that![]()
https://packages.debian.org/source/buster/openjdk-11
Code: Select all
pi@raspi41:~ $ apt policy openjdk-11-jre
openjdk-11-jre:
Installed: (none)
Candidate: 11.0.3+1-1
Version table:
11.0.3+1-1 50
50 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages

Unreadable squiggle
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
we already killed this topic here:ShiftPlusOne wrote: ↑Sat Apr 27, 2019 10:13 amI'll admit I haven't checked, but I'd be very surprised if openjdk 11 didn't work on a pi 0.alnaseh wrote: Probably java 8 will remain the main jdk for quite long time. Pi0 is armv6 and java 8 is the last working version on this platform.
viewtopic.php?t=196887
it is just 2 minutes away from you, you can just install it and try it. i was trying hard to find away to have it in Pi0 without success, i have even contacted Oracle as they have a testing version of java9 that was working before the official release, but no success as well.fruitoftheloom wrote: ↑Sun Apr 28, 2019 8:40 am
How do you come to that conclusion, Debian Buster offer ARMHF, admittedly ARMv7, but many packages which Debian list as ARMv7 do actually run on ARMv6.
Please provide proof of your conjecture !
-
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?
alnaseh wrote: ↑Tue Apr 30, 2019 4:06 amwe already killed this topic here:ShiftPlusOne wrote: ↑Sat Apr 27, 2019 10:13 amI'll admit I haven't checked, but I'd be very surprised if openjdk 11 didn't work on a pi 0.alnaseh wrote: Probably java 8 will remain the main jdk for quite long time. Pi0 is armv6 and java 8 is the last working version on this platform.
viewtopic.php?t=196887
it is just 2 minutes away from you, you can just install it and try it. i was trying hard to find away to have it in Pi0 without success, i have even contacted Oracle as they have a testing version of java9 that was working before the official release, but no success as well.fruitoftheloom wrote: ↑Sun Apr 28, 2019 8:40 am
How do you come to that conclusion, Debian Buster offer ARMHF, admittedly ARMv7, but many packages which Debian list as ARMv7 do actually run on ARMv6.
Please provide proof of your conjecture !
So you have now hijacked Daniel Martensson's post.
Take what I advise as advice not the utopian holy grail, and it is gratis !!