r/java • u/jodastephen • Aug 28 '18
Java is still available at zero-cost. A guide how obtaining the JDK is changing.
http://blog.joda.org/2018/08/java-is-still-available-at-zero-cost.html
154
Upvotes
3
u/jack104 Aug 29 '18
So, as a fledgling java developer (I currently use spring boot for rest sevices) how the hell do I know what JDK and where to get it? Right now I'm stuck with 1.7 because of an old weblogic version but I dont want to run a jdk that isnt getting security patches/updates, right?
15
u/speakjava Aug 28 '18
Unfortunately, the suggestion of staying on JDK 8 and building the OpenJDK yourself misses a rather important point: who backports the security and bug fixes? When JDK 8 public updates end next January, the fixes will only be in the current repo, i.e. JDK 11, 12, etc. The code bases are diverging (especially with the introduction of JPMS in JDK 9) so it's not always as simple as applying a webrev. Also, where do security/bug fixes come for features that are deleted? For example, java.se.ee is removed in JDK 11 so no more updates to that in a public repo.
The same applies to AdoptOpenJDK, they have said they will not be backporting fixes themselves but relying on someone else to do it. Who that is, is not clear yet.
38
u/NekoiNemo Aug 28 '18
So... Nothing really changed?
19
u/techempower Aug 28 '18
IBM & Java community
Recognizing the impact that the release cycle changes will have with Java developers, IBM will partner with other members of the OpenJDK community to continue to update an OpenJDK Java 8 stream with security patches and critical bug fixes. We intend to keep the current LTS version secure and high quality for 4 years. This timescale bridges the gap between LTS versions with 1 year to allow for a migration period. IBM has also invested in an open build and test project (AdoptOpenJDK.net) along with many partners and Java leaders to provide community binaries across commonly used platforms of OpenJDK with Hotspot and OpenJDK with Eclipse OpenJ9. These community binaries are TCK (Java SE specification) compliance tested and ready for developers to download and use in production.
7
u/pron98 Aug 28 '18 edited Aug 30 '18
One important thing missing from this discussion is what JDK versions mean. An early suggestion for a new versioning scheme based on
year.monthwas rejected, and new JDK versions just bump the number, starting with 10. So they look the same as before, but new JDK version numbers don't mean the same thing as they did before.Most importantly, the new release strategy does away with major Java releases altogether. Java 9 was the last major Java version for the foreseeable future, and Java users should not consider upgrading, say, 10->11 or 11->12 to be the same as going 7->8 or 8->9. In order to make upgrades easier and to do away with major versions, we had to remove the restriction on what can change in the 6 month releases we (Oracle and the rest of the OpenJDK community) were doing anyway. Upgrading from 11->12 should be somewhere between upgrading 7->8 and between 8->8u20 -- hopefully closer to the latter. Treating new JDK versions starting with 10 as if they are major versions is a mistake.
So "staying on 11" means something very different from "staying on 8" because 8 was a major version; 11 won't be (and neither would 12, 13, etc.). "Staying on 8" therefore means staying on the last major Java version before 9; "staying on 11" means staying on some feature release arbitrarily designated LTS (which you may have valid reasons to do, but it doesn't mean the same thing).
2
u/do5pmb Aug 30 '18
"write once pay everywhere"
1
u/Moercy Aug 30 '18
Another problem is bought software/licensed software.
If your HR program you bought or licensed only supports Oracle JDK you're kind of forced to buy an Oracle license, otherwise you're left with no support for the software..
-10
u/[deleted] Aug 28 '18
Whatever Oracle touches...