News for hackers. Stuff that matters.
Re:Time to look beyond Oracle's JDK by greatquux on Saturday September 08, 2018 @10:19PM (#17943973)
But what about supporr for the JRE? Please help a sad IT admin understand what's gonna happen.
Re:Time to look beyond Oracle's JDK by pjmlp on Sunday September 09, 2018 @01:44AM (#17944550)
JRE is on its way out.

Thanks to Java modules, jlinker and packager tool, the idea is that you just distribute everything together.

Re:Time to look beyond Oracle's JDK by jirkapinkas on Sunday September 09, 2018 @04:35AM (#17944972)
Except on server. JRE on server will still be a thing (at least in forseeable future).

https://blogs.oracle.com/java-platform-group/understanding-t...

Re:Time to look beyond Oracle's JDK by pjmlp on Sunday September 09, 2018 @05:33AM (#17945125)
Nothing prevents you to deploy everything together.

We have done it multiple times.

Re:Time to look beyond Oracle's JDK by jasonparallel on Sunday September 09, 2018 @03:37AM (#17944819)
Happen to have a good link to read about it?
Re:Time to look beyond Oracle's JDK by pjmlp on Sunday September 09, 2018 @04:04AM (#17944889)
"jlink"

https://docs.oracle.com/javase/10/tools/jlink.htm#JSWOR- GUID-CECAC52B-CFEE-46CB-8166-F17A8E9280E9

"Self-Contained Application Packaging"

https://docs.oracle.com/javase/10/deploy/self-contained-appl...

"JLINK in Java-9"

https://blog.knoldus.com/jlink-in-java-9/

"Using Java 9 Modularization to Ship Zero-Dependency Native Apps"

https://steveperkins.com/using-java-9-modularization-to-ship...

Re:Time to look beyond Oracle's JDK by jirkapinkas on Sunday September 09, 2018 @04:37AM (#17944981)
Unfortunately it will take several years until you will be able to modularize server Java application. Right now the ecosystem just isn’t ready.
Re:Time to look beyond Oracle's JDK by pjmlp on Sunday September 09, 2018 @05:33AM (#17945126)
Nothing prevents you to deploy everything together.

We have done it multiple times.

Re:Time to look beyond Oracle's JDK by jirkapinkas on Sunday September 09, 2018 @05:47AM (#17945160)
How do you solve issue that in order to use jlink every dependency must have explicit module name? Also do you use Spring Boot with modules? (Last time I tried to make it work I failed miserably, but it was a long time ago ...).
Re:Time to look beyond Oracle's JDK by pjmlp on Sunday September 09, 2018 @07:43AM (#17945441)
I was mentioning just bundling JRE with the application.

As for Spring, I never used it in anger.

Our Java Web projects usually are built on top of JEE stacks or Jersey.

Re:Time to look beyond Oracle's JDK by phoschore on Saturday September 08, 2018 @10:38PM (#17944030)
Oh, just the usual near-monthly (if not daily) death march of ever-increasing version numbers, just like Chrome and Firefox. And Windows Update. And OS X, And iOS. And Ubuntu. And so on, and so on, and so on...
Re:Time to look beyond Oracle's JDK by djsumdog on Saturday September 08, 2018 @10:51PM (#17944082)
In general I'm glad we have rapidly increasing version numbers for Chrome, Firefox and even Edge. If you had lived through the IE6 days, this would be something to appreciate.

I'm how sure how I feel about it with the JRE. I have old open source apps on Scala 2.11/SBT 0.13 that are already experience dependency rot. :-/ It's going to be more difficult too since deprecated stuff is finally getting removed from Java.

I'm curious to see where we'll be a few years from now.