DanielMartensson
Posts: 2
Joined: Fri Feb 01, 2019 1:23 pm

Why are Raspberry Pi still using Java 8 when Java 11 is available?

Fri Feb 01, 2019 1:26 pm

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/

fruitoftheloom
Posts: 19116
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Fri Feb 01, 2019 5:50 pm

DanielMartensson wrote:
Fri Feb 01, 2019 1:26 pm
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/

OpenJDK11 will be in Buster release.

Debian, which Raspbian is a fork, are very conservative regards updating packages.
adieu

My other Computer is an Asus CS10 ChromeBit
https://www.asus.com/uk/Mini-PCs/Chromebit-CS10

User avatar
HawaiianPi
Posts: 3638
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?

Fri Feb 01, 2019 6:53 pm

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?
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).
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?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5578
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Mon Feb 04, 2019 8:09 am

HawaiianPi wrote: They don't have a license to distribute anything from Azul Systems.
Spot on
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 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.

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?

DanielMartensson
Posts: 2
Joined: Fri Feb 01, 2019 1:23 pm

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Mon Feb 04, 2019 10:54 am

fruitoftheloom wrote:
Fri Feb 01, 2019 5:50 pm
DanielMartensson wrote:
Fri Feb 01, 2019 1:26 pm
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/

OpenJDK11 will be in Buster release.

Debian, which Raspbian is a fork, are very conservative regards updating packages.
When will Raspberry Pi buster be released?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5578
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Mon Feb 04, 2019 11:09 am

DanielMartensson wrote:
Mon Feb 04, 2019 10:54 am
fruitoftheloom wrote:
Fri Feb 01, 2019 5:50 pm
DanielMartensson wrote:
Fri Feb 01, 2019 1:26 pm
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/

OpenJDK11 will be in Buster release.

Debian, which Raspbian is a fork, are very conservative regards updating packages.
When will Raspberry Pi buster be released?
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.

User avatar
HawaiianPi
Posts: 3638
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?

Mon Feb 04, 2019 6:06 pm

ShiftPlusOne wrote:
Mon Feb 04, 2019 8:09 am
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.
The 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

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.

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?
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). ¯\_(ツ)_/¯

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?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5578
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Mon Feb 04, 2019 6:17 pm

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.
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:
Mon Feb 04, 2019 6:06 pm
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). ¯\_(ツ)_/¯

Haven't messed much with newer versions, because I mainly use Java for Minecraft, and Optifine still uses Java 8.
From Oracle/OpenJDK 11, they're almost identical.

https://blogs.oracle.com/java-platform- ... -and-later

Balin
Posts: 10
Joined: Mon Sep 17, 2018 7:43 am

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Wed Feb 20, 2019 3:04 pm

DanielMartensson wrote:
Fri Feb 01, 2019 1:26 pm
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/
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.
Regards, Balin.

User avatar
DougieLawson
Posts: 34898
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Fri Feb 22, 2019 9:24 pm

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.
Note: Having anything remotely humorous in your signature is completely banned on this forum.

Any DMs sent on Twitter will be answered next month.

This is a hippy & doctor free zone.

fruitoftheloom
Posts: 19116
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Fri Feb 22, 2019 10:16 pm

Balin wrote:
Wed Feb 20, 2019 3:04 pm
DanielMartensson wrote:
Fri Feb 01, 2019 1:26 pm
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/
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.

ArchLinuxArm has version 11.02 of jre-openjdk & jdk-openjdk
adieu

My other Computer is an Asus CS10 ChromeBit
https://www.asus.com/uk/Mini-PCs/Chromebit-CS10

Heater
Posts: 11399
Joined: Tue Jul 17, 2012 3:02 pm

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Sat Feb 23, 2019 7:56 am

Dougie,
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.
So why don't you answer the question?
It's the DebIan way and Raspbian mostly follows their dogma.
"Dogma" is not the answer. Or at least it implies it because of some unfounded religious/philosophical opinion.

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.

jahboater
Posts: 3919
Joined: Wed Feb 04, 2015 6:38 pm

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Sat Feb 23, 2019 8:26 am

Gentoo64 packages seem up to date.
It even includes GCC 8.2

https://github.com/sakaki-/gentoo-on-rpi3-64bit

fruitoftheloom
Posts: 19116
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Sat Feb 23, 2019 8:56 am

jahboater wrote:
Sat Feb 23, 2019 8:26 am
Gentoo64 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 ;)
adieu

My other Computer is an Asus CS10 ChromeBit
https://www.asus.com/uk/Mini-PCs/Chromebit-CS10

dpslwk
Posts: 20
Joined: Sun Feb 19, 2012 2:08 pm

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Mon Feb 25, 2019 1:43 pm

ShiftPlusOne wrote:
Mon Feb 04, 2019 8:09 am
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?
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 issues

https://community.ubnt.com/t5/UniFi-Wir ... -p/2668805
wirelessthings.net
OpenMicros.org

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5578
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Why are Raspberry Pi still using Java 8 when Java 11 is available?

Mon Feb 25, 2019 6:36 pm

dpslwk wrote:
Mon Feb 25, 2019 1:43 pm
ShiftPlusOne wrote:
Mon Feb 04, 2019 8:09 am
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?
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 issues

https://community.ubnt.com/t5/UniFi-Wir ... -p/2668805
Thanks for the heads up and the link

User avatar
HawaiianPi
Posts: 3638
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?

Mon Feb 25, 2019 10:26 pm

dpslwk wrote:
Mon Feb 25, 2019 1:43 pm
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 issues
Try the webupd8team PPA for keeping Oracle Java 8 up-to-date (from my post above).
HawaiianPi wrote:
Mon Feb 04, 2019 6:06 pm
The 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?

Return to “Java”