r/java • • Sep 25 '18

Java 11 Released

https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html
207 Upvotes

59 comments sorted by

40

u/lurker_in_spirit Sep 25 '18

OpenJDK builds (GPL2+CE): http://jdk.java.net/11/

7

u/moebaca Sep 25 '18

Just pulled it down this morning from there! Do you know how long https://adoptopenjdk.net usually takes to host new versions?

2

u/Mattizin Sep 26 '18

ELI 5 what are the differents between the downloads at http://jdk.java.net/11/ and https://adoptopenjdk.net ? I think they are both the non oracle jdk versions which are open source?

1

u/pron98 Sep 26 '18

Both are OpenJDK builds. jdk.java.net contains binaries built by Oracle.

1

u/kurosaki1990 Sep 26 '18

This website is made by ruby its like freaking insult.

0

u/AlternativePenguin Sep 26 '18

You should be able to get them here: https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11/ if you don't want to wait for the homepage to be updated.

2

u/moebaca Sep 26 '18 edited Sep 26 '18

Interesting. Thank you for the link. I've got to wait for their homepage to update though because I am doing a video on Spring Boot with OpenJDK and I'd like just to show the audience the homepage instead of navigating to the CI area. Thanks for that link though! For work I actually nabbed it off the Oracle site today.. but I heard folks like AdoptOpenJDK better so I'm just trying to figure out how it differs.

Edit* Seems Spring Boot has updated Initializr for 11.

31

u/[deleted] Sep 25 '18

Woah, two times lighter than v10: 171.43 MB (jdk-11_linux-x64_bin.tar.gz) vs 338.43 MB (jdk-10.0.2_linux-x64_bin.tar.gz)

9

u/endhalf Sep 25 '18

So, I might be totally off here, but isn't it because it's missing some of the core modules..? Or are the modules included, only not imported..?

25

u/jirkapinkas Sep 25 '18

AFAIK it’s because Java EE modules like JAXB, CORBA and JMC has been removed in Java 11. Edit: And Java FX

3

u/endhalf Sep 25 '18

Ah, that's fair. Coz I know we had some problems with the java.se module as well.

43

u/wildjokers Sep 25 '18

Let the Great License Confusion begin!

14

u/jasie3k Sep 25 '18

Is it a Long Term Support version?

7

u/ryebrye Sep 26 '18

... though it won't really matter because unless you are paying Oracle you won't get long term updates from them...

And if you aren't paying Oracle and are getting it from somewhere else, you will get the same long term updates from them that you'd normally get

1

u/0x256 Sep 26 '18

Unlikely. It is to expensive to support all releases for a long time, as you would have to backport and test everything on dozens of releases after a couple of years, so all other vendors and OpenJDK contributors will most likely also focus on the LTS releases for long term support, just like oracle. That is what LTS releases are for.

1

u/eliasv Sep 26 '18 edited Sep 26 '18

In practice it absolutely does matter. Alternative distributors of binaries have incentive to follow Oracle's model if they want to present themselves as a valid migration target. At least AdoptOpenJDK have signalled their intent to match Oracle's LTS release schedule afaiu. If the open source community does step in to continue backports beyond six months, it will almost certainly be through contribution to e.g. the jdk11u project and will coincide with Oracle's own LTS support.

24

u/DJDavio Sep 25 '18

The wait for Adopt OpenJDK builds begins.

7

u/dpash Sep 25 '18

Given they're not going to back port changes, why?

9

u/youwillnevercatme Sep 25 '18

Why the downvotes here?

15

u/dpash Sep 25 '18

Because you don't go against the AdoptOpenJDK circlejerk.

AdoptOpenJDK have said that they're just going to provide builds of OpenJDK repository, which doesn't help with security fixes, if no one else backports them. Oracle will provide backports and builds from the OpenJDK source for at least six months. We'll have a better idea of what will happen with Oracle in four or five months time. Redhat/Andrew Haley has said that OpenJDK should provide binaries themselves.

So again, I ask, what benefit does AdoptOpenJDK bring?

4

u/moebaca Sep 25 '18

Excellent question. I hope someone responds to this as I had just educated myself on the site last night and had the same thoughts.

5

u/[deleted] Sep 25 '18

My understanding based on this thread is that AdoptOpenJDK's purpose is to build/test so that there is a consistent location to get tested OpenJDK binaries. As long as someone is backporting fixes, it makes sense for them to keep generating builds.

The OpenJDK project was in charge of development, and that will remain the case: Oracle will manage each release for the first 6 months (maybe more) and then hand the reins over to someone else, perhaps Andrew Haley at Red Hat.

8

u/gkopff Sep 25 '18 edited Sep 26 '18

So if all I'm interested is Linux/64 and macOS/64 Hotspot JDKs, is there any reason to use an AdoptOpenJDK install over a http://jdk.java.net/11/ install?

EDIT: And/Or Zulu: https://www.azul.com/downloads/zulu/

1

u/jodastephen Sep 28 '18

http://jdk.java.net/11/ will probably only have updates for 6 months. Other non-Oracle OpenJDK builds (AdoptOpenJDK, Zulu, your package manager) will have updates for 4 years or more.

12

u/Gwynnie Sep 25 '18

BEGIN THE MASS MIGRATION!!!

Actually really excited to start the roll out at my company

12

u/jack104 Sep 25 '18

Shit we are stuck on 7 because one customer refuses to upgrade weblogic. Ughhhh.

7

u/nikanjX Sep 25 '18

Some are on 6, because customers..

3

u/duhace Sep 25 '18

I've already been on it for a week or two now. There's some issues with my tooling or tools I want to use, but I imagine that will get worked out soon.

3

u/ReadFoo Sep 26 '18

I plan to keep my personal site on 8 for as long as possible.9+ is missing too much useful stuff. Oracle is now an abomination.

3

u/dpash Sep 26 '18

What are you missing? All the modules that have been removed are just a maven/Gradle dependency away

4

u/GoodNamesTaken73 Sep 25 '18

Sorry if this is a dumb question, but I couldn't find the answer.

When are they going to release JRE 11?

5

u/calmonad Sep 25 '18

I thought I read a note on the JDK 11 page yesterday that there would be no desktop JRE release. Only JDK and Server JRE.

I can't find this note now that all the pages changes for GA release.

1

u/JourneymanGM Oct 01 '18

According to Oracle's Java 11 Release Notes:

Oracle JDK offers "JDK" and "JRE". OpenJDK offers only "JDK".

1

u/dpash Sep 26 '18

There hasn't been a separate JRE download for a few releases now. You need to install the JDK. On the plus side, the JDK is much lighter than in the past.

1

u/GoodNamesTaken73 Sep 26 '18

Version 10 had a separate JRE download, but it was only 64 bit. Here's the link to it: https://www.oracle.com/technetwork/java/javase/downloads/jre10-downloads-4417026.html

I'm the patch guy for a decent sized company. We currently have JRE 8 installed on all our systems and have several web apps that use it. I want to make sure we are compliant. I've been reading through the documentation to see what we need to do next, but it's not clear to me and I can't find a clear path forward.

Of course the goal here is to not have to start paying for Java Runtime if we don't have to.

So far, it's looking like we may have to go with OpenJDK to avoid the need for having to buy licenses. And installing OpenJDK will also give us the JRE that we are looking for.

Does that sound right?

2

u/dpash Sep 26 '18

Yes, the JDK was always a superset of the JRE. If you install the OpenJDK build from https://jdk.java.net/11 you can continue using Java as you always have. The only difference is that there may or may not be a shorter timeframe before upgrading to a new version, but the differences between Java versions is a lot smaller than they were prior to Java 10.

1

u/jodastephen Sep 28 '18

If you want security patches after March 2019, you will either need to move to https://jdk.java.net/12 (Java 12), or move to another OpenJDK build, such as AdoptOpenJDK, Zulu or your package manager. Or you can just use AdoptOpenJDK/Zulu etc now (or rather in a few days when they finishing testing their builds).

1

u/dpash Sep 28 '18

Andrew Haley has said that there'll be official OpenJDK builds under his watch.

6

u/[deleted] Sep 26 '18 edited Sep 26 '18

Here's the full changelog https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html

I wonder why did they remove desktop auto-updates...? It's almost as if they are planning on breaking backwards compatibility soon and don't want random Java stuff breaking for desktop users...

Also why are all the of the rationales involved in the removal of auto-updates, Web Start, JavaFX, JMC, etc. "not public"? Like I don't mind security stuff being not public but these things...? You pretty much just have to assume that they're hiding some upcoming plans that most Java developers and users aren't going to like what's in there... Highly suspicious!

I sure would like to see what they don't want me to see in those otherwise harmless docs!

EDIT the respective JEPs don't seem to be public either http://openjdk.java.net/projects/jdk/11/

3

u/BroLegend Sep 25 '18 edited Sep 26 '18

Is there a migration guide for Java 8 and Spring/Spring boot?

7

u/cogman10 Sep 26 '18

No, but most of your changes will (likely) be "update your dependencies". Then build and run.

Building will find like 90% of the problems. Running will find the other 10%.

1

u/BroLegend Sep 26 '18

What about the spring boot project which depends on Java ee?

1

u/cogman10 Sep 26 '18

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-with-Java-9-and-above

If you can't find "lib with Java 11" try searching with 9 instead since that is where most of the breaks occurred.

1

u/kumar29nov1992 Sep 26 '18

I’m worried about changes to CORBA dependency. Does it mean RMI will no longer work?

1

u/Shilpa_Opencodez Sep 27 '18

Any idea, how new feature VarHandles will help ??

0

u/[deleted] Sep 25 '18

[deleted]

8

u/lbkulinski Sep 25 '18

The architects said they are going to focus on macOS, Windows, and Linux. You may be able to get builds for Solaris from another vendor.

2

u/dpash Sep 25 '18

There's going to be a lot of angry Oracle customers.

6

u/lbkulinski Sep 25 '18

Likely so! For those that are interested, Mark Reinhold talks about it here.

0

u/[deleted] Sep 25 '18

[deleted]

11

u/nikanjX Sep 25 '18

Oracle saying F U to Oracle customers?! Inconceivable!!!

6

u/matthieuC Sep 25 '18

You are not profitable enough, prepare to be terminated.

5

u/vplatt Sep 25 '18

Inconceivable!!!

I believe you have misspelled "inevitable".

2

u/_INTER_ Sep 26 '18

The whole OS was discontinued, why build Java for it...

0

u/[deleted] Sep 25 '18

[deleted]

5

u/lbkulinski Sep 25 '18

You can see what features have been added so far by going here. I don't think both will make it into 12, but we'll see.

0

u/[deleted] Sep 25 '18

[deleted]

3

u/lbkulinski Sep 25 '18

Oh, they'll make it in! Just when they're ready, that is.

0

u/[deleted] Sep 25 '18

[deleted]

1

u/_INTER_ Sep 26 '18

But by the time Java 13/14/15 is actually used at my organization

What version is your organization using now? Java 15 should be released September in 2 years.