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: 20143
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

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

User avatar
HawaiianPi
Posts: 4454
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: 5770
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: 5770
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: 4454
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: 5770
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: 35540
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. Wear a tinfoil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

fruitoftheloom
Posts: 20143
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

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

Heater
Posts: 12966
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: 4595
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: 20143
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

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

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: 5770
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: 4454
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?

alnaseh
Posts: 60
Joined: Thu Jun 23, 2016 5:12 am

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

Sat Apr 27, 2019 9:59 am

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
Raspberry Pi Engineer & Forum Moderator
Posts: 5770
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?

Sat Apr 27, 2019 10:13 am

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.
I'll admit I haven't checked, but I'd be very surprised if openjdk 11 didn't work on a pi 0.

fruitoftheloom
Posts: 20143
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?

Sun Apr 28, 2019 8:40 am

alnaseh wrote:
Sat Apr 27, 2019 9:59 am
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.

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 !
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

User avatar
rpdom
Posts: 14740
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

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

Sun Apr 28, 2019 10:51 am

openjdk 11 is available in Raspbian Buster, therefore it should work on any Raspberry Pi.

fruitoftheloom
Posts: 20143
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?

Sun Apr 28, 2019 11:01 am

rpdom wrote:
Sun Apr 28, 2019 10:51 am
openjdk 11 is available in Raspbian Buster, therefore it should work on any Raspberry Pi.

Yep just stated that :(

https://packages.debian.org/source/buster/openjdk-11
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

User avatar
rpdom
Posts: 14740
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

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

Sun Apr 28, 2019 12:11 pm

fruitoftheloom wrote:
Sun Apr 28, 2019 11:01 am
rpdom wrote:
Sun Apr 28, 2019 10:51 am
openjdk 11 is available in Raspbian Buster, therefore it should work on any Raspberry Pi.

Yep just stated that :(

https://packages.debian.org/source/buster/openjdk-11
Well, actually you stated that Debian have it. It doesn't always follow that Raspbian has it available, but in this case it does

Code: Select all

[email protected]:~ $ 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
:)

alnaseh
Posts: 60
Joined: Thu Jun 23, 2016 5:12 am

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

Tue Apr 30, 2019 4:06 am

ShiftPlusOne wrote:
Sat Apr 27, 2019 10:13 am
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.
I'll admit I haven't checked, but I'd be very surprised if openjdk 11 didn't work on a pi 0.
we already killed this topic here:
viewtopic.php?t=196887
fruitoftheloom wrote:
Sun Apr 28, 2019 8:40 am
alnaseh wrote:
Sat Apr 27, 2019 9:59 am
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.

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 !
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
Posts: 20143
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?

Tue Apr 30, 2019 7:00 am

alnaseh wrote:
Tue Apr 30, 2019 4:06 am
ShiftPlusOne wrote:
Sat Apr 27, 2019 10:13 am
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.
I'll admit I haven't checked, but I'd be very surprised if openjdk 11 didn't work on a pi 0.
we already killed this topic here:
viewtopic.php?t=196887
fruitoftheloom wrote:
Sun Apr 28, 2019 8:40 am
alnaseh wrote:
Sat Apr 27, 2019 9:59 am
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.

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 !
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.

So you have now hijacked Daniel Martensson's post.
adieu

Asus CS10 Chromebit / HP Envy 4500 Wireless Printer / Raspberry Pi Model 2B v1.1 / RealVNC Software...

Return to “Java”