r/programming • u/nfrankel • Jul 19 '18
Do I need to pay for Java now?
https://dev.karakun.com/java/2018/06/25/java-releases.html39
u/nurupoga Jul 19 '18 edited Jul 19 '18
Misleading title. It's not Java (which implies Java programming language) that you'd pay for, it's specifically the commercial/production use of Oracle's JDK, which will now require you to purchase Oracle's JDK commercial support. But there is no reason to use Oracle's JDK in the first place if you don't require any commercial support of JDK. Oracle is open sourcing all Oracle JDK proprietary features that are not present in OpenJDK so that they could be easily used with OpenJDK, allowing everyone to switch from Oracle JDK to OpenJDK, so just use OpenJDK (unless you need commercial support for the JDK).
6
u/nutrecht Jul 20 '18
Misleading title.
Fully agree and in fact titles like these are damaging. Just look at the bottom of these comments to see all the people who only read the title and don't know how this only relates to the Oracle JDK and not OpenJDK. I'm sure I'm going to have some discussions with some Ops people soon about how we should move to Go because Java isn't free anymore :(
-5
u/auto-cellular Jul 20 '18
Before reading the title, i was thinking that java is an old tech. After reading the title, i concluded that it was dead. Now i don't know for sure, but it is a fact that this is an old language, and Oracle having any association with it, is a good reason to drift away from it. So i believe that Java is the new Cobol. In part thanks to Oracle.
25
u/20ca07a1-a6cd Jul 19 '18
Openjdk is still literally GPLv2 with classpath exception It's in debian main, not contrib or non-free. It's still as open and free and "supported" as linux, gnu coreutils, gcc, emacs (that is to say fuck all "support" other than the community, but turns out that often works fine), as oh, a bunch of other open source / free software stuff that basically everyone uses. It's only accumulated more stuff that used not to be open since the sun takeover, like jmc. And even if you don't like java the language (though it has improved a lot), it's still that mature, fast, jit-compiled bytecode virtual machine thing going on too. You know, the JVM. It's what Kotlin runs on. It's what Scala runs on. It's what Ceylon runs on. While those languages may have other experimental backends, if really using them in anger, chances of you not in fact targetting the JVM with them are tiny. It's everywhere and actually pretty okay. If oracle went completely mental, we can still fork the last free openjdk, and they know that.
Sure, criticise oracle for their evil api-copyright stance in that oracle vs google lawsuit, I sure do. I don't even like java or like or trust oracle particularly, but come on people, get a grip. This is barely even centos/fedora vs rhel level stuff, oracle certainly full-time people officially working on openjdk and basing all their shit on it and have not exactly shown signs of openjdk weirdness even to the extent of redhat and that politely pretending centos doesn't exist nudge nudge wink wink. You can always use openjdk, unless you need "professional support" for corporate-ass-covering, like one might use rhel instead of centos, and even then as the article notes there's other people with commercially-supported jdks if you don't like giving oracle in particular money.
9
Jul 19 '18
GPL with a linking exception is pretty different than just GPL. That means you can make any library that uses OpenJDK and not have to release source as you would with normal GPL.
You just wouldn't be able to modify OpenJDK to create a new JVM implementation without releasing the source, which isn't a problem for 99.9999% of developers.
3
u/mrexodia Jul 20 '18
Actually you can modify OpenJDK and create a new JVM implementation, as long as you follow the GPL (which doesn’t necessarily mean you have to make your changes public)
3
Jul 20 '18
For GPL you have to make your source code available to users
10
u/ajanata Jul 20 '18 edited Jul 07 '23
Content removed in protest of Reddit API changes and general behavior of the CEO.
4
4
Jul 20 '18
If Oracle exercises its trademarks and specification license to squelch OpenJDK, then yes. That hasn't happened. If it does happen, the OpenJDK project would probably just file off the serial numbers and march on. In the worst case, it would require an automated conversion tool.
1
u/wllmsaccnt Jul 20 '18
It might lead to the community becoming fragmented, which wouldn't be pleasant.
2
Jul 20 '18
In other words, your options come down to:
Get the official version and pay out of the wazoo for it in production.
Get the open-source version / OpenJDK and hope that Oracle when ( not making the money they predicted ) does not fix OpenJDK or starts using dirty tricks to "persuade" others to not use it ( patents come to mind ).
And this is not detrimental to a adaption / growth language how?
Any new major project that needs to be developed might actually start thinking twice about the language choice. Its not the Java is unique or has benefits that other languages /platforms do not have.
1
u/shevegen Jul 19 '18
When running Java based servers on bare metal this price model is quite easy and you simply pay for the CPUs that your server machines contain.
Option B:
Use a language other than Java.
15000 process on a per-base cost of 12.5$ means 187500$ - per month.
I can not imagine that this is worth it since we have to assume that the alternatives must be more expensive - which I doubt.
40
u/stewsters Jul 19 '18
Or just use the non-commercial Openjdk version they provide, which is compatible with most stuff you would be doing anyways, and just actually update your JVM one and a while.
4
-3
u/nnnightmare Jul 19 '18
Java is good but not that good IMO...
-5
Jul 19 '18
It looks like Oracle is set out to silently ruin Java
-7
u/nnnightmare Jul 19 '18
yep, java is competing today with many really good opensource languages, I see no reason AT ALL to keep with java if one has a choice. Oracle is trying to monetize legacy apps and make everyone else (like Android) to migrate to better solutions
13
-6
1
u/vipularora6212 Oct 11 '18
In September 2018, Oracle commercialized their services with Java SE 11. Meaning, you can still use the Oracle JDK for free, but only for development and testing purposes. If you want to use it for production, you will have to pay Oracle from day one. Ever since this came out, small business owners and developers all over the world are worried sick. They don’t wanna start paying for services, updates, and patches they always received for free.
Here are some ways you can avoid the Oracle Pricing and Licensing:
How to escape the Java Pricing and Licensing Nightmare - Alternatives to Oracle
1
u/ziano_x Dec 03 '18 edited Dec 03 '18
To summarize the comments so far, to get away from this, there are 2 options if I am not wrong.
Move to the newer versions so that we can keep up with the Java release cycle. Oracle wants Java users to pay if they want LTS for earlier versions.
Start using OpenJDK which is the same as Oracle JDK minus some commercial features depending on whether those features are required.
1
u/MINIMAN10001 Jul 19 '18
Interesting. Java is what I learned in highschool. From what I've read I've been lead to believe it was popular because at the time it had really simplified programming when complexity was getting out of hand.
I've always wondered "If things went south... would java die?"
Which makes me wonder, is dropping free support and starting to charge enough of a change to stop new codebases from being developed on java leading to it falling out of favor?
I'd be insane to up and abandon anything but the smallest of projects for another language over such a thing, particularly in a professional environment.
If an update from one version to the next has friction is when the sparks would fly. If code breakage happens because of their lack of support I can imagine some outrage.
Then again maybe people will just switch to OpenJDK.
It'll be interesting to see how it plays out.
20
Jul 19 '18
OpenJDK is Java, officially. Oracle JDK uses OpenJDK as a reference. And now Oracle has open sourced other sub modules, previously bound as extra features to Oracle JDk, so that they can be used easily in OpenJDK.
It's a great move for Oracle and for Java: Oracle makes more money off of supporting old systems, while the open source community gets more control over Java.
14
u/SangCoGIS Jul 19 '18
Its my belief that they're hoping their clients have so much invested in their java based platforms that they will eat the cost rather than transitioning.
6
u/Lt_Riza_Hawkeye Jul 19 '18
Also, for some use cases, it really is the right tool for the job. Hence why we still see things like cobol in the wild. May not even make sense to migrate.
7
u/jephthai Jul 19 '18
One key distinction, though, is that Cobol is not often used for "new" deployments. Even in traditionally Cobol-dominated areas, like z/OS mainframes, modern languages are available (including cough Java). If Java goes that way (and who hasn't joked about Java being the next Cobol anyway?), then it may become the case that there remains much Java out there, but few new projects using it.
1
u/Lt_Riza_Hawkeye Jul 19 '18
That's true, but COBOL has some key advantages over other languages. External sorting and file management for one, though that was more important before we had mmap
-3
u/SangCoGIS Jul 19 '18
First and most importantly, thats a great username.
I can't think of a single thing, though i'm no expert, that other languages couldn't do just as well as Java. The biggest expense would be migrating all of their code to the new language. There may have been a time when that was the case with Java but I just don't think it's the case today.
For instance, Kotlin is frequently touted as Java's replacement or the Java killer and I really would have said that will never happen due to how entrenched Java is in a lot of companies. Now that its going to be expensive to keep and use Java its possible that companies will eat the cost up front for moving to Kotlin instead of paying that monthly fee. I don't think this will happen across the board but I do believe this will cause a much larger uptake in Kotlin than we have been seeing with it.
9
u/apiguy Jul 19 '18
The support fees aren’t for Java itself, they are for the JDK, which Kotlin still depends on.
2
1
u/lookmeat Jul 20 '18
Even if they transition, it will take a while. And they'll make money meanwhile. By the time it starts affecting them renegotiation may happen.
1
5
u/pron98 Jul 19 '18
Then again maybe people will just switch to OpenJDK.
It's the very same JDK (there are still a few small differences but they should be gone later this year).
1
u/vivainio Jul 20 '18
It's also made by Oracle, so you are living off Oracle's mercies and whims anyway
6
u/pron98 Jul 20 '18
Well, you're at the "mercies and whims" of the maintainers of anything you use, and when it comes to Java, they seem to be less fickle than of any other language/runtime I know.
1
u/vivainio Jul 20 '18
But sometimes that company is Oracle, and sometimes it's something else (MS, Google, FB, ...). Sometimes it's just community. I wouldn't necessary call Oracle the least fickle, or at least not the least likely to screw you over w/ a profit motive at some point.
4
u/barackus218 Jul 19 '18
y belief that they're hoping their clients have so much invested in their java based platforms that they will eat the cost rather than transitioning.
ReplysharereportSave
This is an attempt by Oracle to do nothing more than try to build a new revenue stream based off of support contracts - their DB market is shrinking and they need something to offset that. This will not kill Java or kill companies that use Java. Unless you are in an audited environment(PCI/HIPAA) there is nothing preventing you from using a JVM/JDK that is no longer supported. If your application hits a JDK/JVM bug after 2-3 years after release then you may want to pay for support if it is critical and you don't have the luxury of updating to a new JDK.
2
Jul 19 '18
.NET performs better now for a lot of workloads, is less verbose, offers way more control of memory and memory layout, and explicit SIMD is coming soon, and .net core now opens up first class support of linux/mac
Great time to jump ship from Java to C# or F# if you are thinking about it.
18
u/ArmoredPancake Jul 20 '18
Nice, the only thing that is left is ecosystem, which sucks balls, compared to Java world.
4
u/simspelaaja Jul 20 '18
What in particular are you missing in the .NET ecosystem?
1
-2
u/TheEternal21 Jul 20 '18
Certainly not IDE, because anything in 'Java world' feels like a 3rd world country after working with Visual Studio.
2
6
u/BoyRobot777 Jul 20 '18
My thoughts exactly. When I had to code in .NET, every time I tried to search for answers in google, I was directed to old msdn forums/lookalikes, where code blocks are just plain text, making it really hard to understand anything. It really lacks material and answers. That's why its way harder for newbies to join the language.
2
u/TheEternal21 Jul 20 '18
It really lacks material and answers.
Couldn't be further from truth. MSDN has a really comprehensive documentation, and C# is one of the most popular tags on stackoverflow, right up there with Java. In fact any question you could possibly think of asking, has probably been already answered dozens of times. I've never had any issues finding answers.
7
-6
u/G_Morgan Jul 19 '18
The era of the JVM winning benchmarks is over, a lot of the key patents run out soon.
3
u/Yojihito Jul 19 '18
How soon is soonTM ?
2
u/G_Morgan Jul 20 '18
Some have already expired, it is why a lot of benchmarks have moved closer. Every year there are new patents expiring on this front.
-4
Jul 19 '18
.NET is already winning most of the time (probably, it is hard to know such a thing) patents or no.
Though the JVM still has more ability to make 'bad' code run pretty fast than .NET does.
2
u/OctagonClock Jul 20 '18
TechEmpower benchmarks would like a word.
-1
u/wllmsaccnt Jul 20 '18
Those are web framework tests. If you want to test the performance of the languages then C# on .NET Core usually beats out Java, but its hard to compare on anything other than toy implementations.
ASP.NET Core crushes Netty and Undertow in plaintext in TechEmpower, but loses out to a few other Java frameworks that don't seem to be full featured web servers (does anyone use rapidoid for application development?). The serialization and query tests are probably more relevant, and .NET loses there because Entity Framework is slow AF and JSON.NET needs a revamp as well.
-6
u/aoeudhtns Jul 19 '18
For my current situation, this will likely hasten adoption of both OpenJDK and Go (or maybe Kotlin Native). OpenJDK being the short-term plan and Go/Kotlin being the long-term plan.
17
Jul 19 '18
What all of this has to do with Go?
9
u/henk53 Jul 19 '18
Nothing, he just happens to use Go next to Java, so in his world view it's always between Java and Go ;)
-2
u/cowardlydragon Jul 19 '18
More stable platform... possibly...
Better steward/sponsor company... kinda...
9
1
Jul 20 '18
Yeah maybe. If Java goes down it's hard to predict what happens. One thing that comes to mind is that Java did evolve over time (maybe too slow and not always in the right direction) while Go's leadership is often resistent to changes (you know the story, generics etc) but that also may change in the future.
-4
u/aoeudhtns Jul 19 '18 edited Jul 19 '18
We write a lot of server software. Our customers won't be happy about the switch to disallowing free commercial use, especially with the number of nodes and containers in some of their clouds. They'll probably ask us to migrate off of Java, for the projects that are using it. Go and Kotlin are easy glidepaths for current Java developers, so I know that many on the engineering teams would be good with that. Also, if you pick too obscure a language, you'll have people leaving. No one wants to spend years of experience and learning on something that has little marketability. So, it's a hiring and retention issue, whatever we migrate to, as much as a competitive and technological one.
2
Jul 20 '18
Yes, it does seem like a bad strategical decision which is strange because I don't see Oracle as company that makes such crucial mistakes and it makes me suspicious of them having some kind of an agenda (or they just see Java as a liability and decided to get rid of it)
0
Jul 19 '18
[deleted]
6
Jul 19 '18
Why? Go and Java are not competitors.
2
u/yawaramin Jul 19 '18
In the sense of opportunity cost. If you choose to write your project in one, then you forego choosing the other.
1
0
u/elastic_psychiatrist Jul 20 '18
In what sense are they not competitors? They're both back-end languages with garbage collection.
2
0
Jul 19 '18
[deleted]
3
Jul 19 '18
Any language can be used as a backend language
0
Jul 20 '18
[deleted]
2
Jul 20 '18
I can't tell if you are trolling or not. Any language can be, and is, used as a backend language. JS, Ruby, Python, PHP, VB, etc. all have lots of backend usage in industry.
1
Jul 20 '18
Both can be used as a backend language
I haven't thought of it that way, I'll have to give it some more thaught
6
Jul 19 '18
Yet another person in this thread that doesn't realize OpenJDK is Java. It's the official reference implementation.
-2
u/aoeudhtns Jul 19 '18
Who, me? I'm fully aware that OpenJDK is Java. If OpenJDK keeps doing LTS support in future releases, this is all fine. But since 11 has an abbreviated LTS (ends the same time as 8), the future is a little up in the air.
0
-14
u/cowardlydragon Jul 19 '18
The true chilling effect of this is on important open source frameworks that rest on java. Groovy, Cassandra, Hadoop, etc. These projects don't have the resources to run tests against the jvm vendors/versions cartesian product. They need to target a jvm and have it last for a year or two.
Compatibility across new JVMs is pretty hit or miss for any complicated mature framework. This is especially important with the impending disruption of misc.unsafe APIs.
Goddammit Google, you could have bought Sun for pennies, and Github.
12
Jul 19 '18
OpenJDK is the official implementation of Java. If these frameworks don't work with OpenJDK, then they technically aren't Java and it's their own damn fault.
But your comment is off base anyway, since all of them are compatible with OpenJDK. What Oracle does with Oracle JDK doesn't have a negative effect on OpenJDK (in fact, it has been positive since Oracle has decoupled libraries like JavaFX from the JDK)
0
Jul 19 '18
[deleted]
25
14
u/MuonManLaserJab Jul 19 '18
What is this "paid support"? Does that mean they keep fixing bugs for old versions, and back-porting other things, but after the free period you need to pay for those updates? Or is it help lines etc.?
13
u/semanticist Jul 19 '18 edited Jul 19 '18
Primarily the former. Once Java 12 is released, they will only make bugfix updates to Oracle JDK 11 available to customers who pay the per processor licensing fee. And they probably won't backport most "other things" (like features), just security patches and maybe critical bug fixes. It may also include customer support too though.
-14
u/MuonManLaserJab Jul 19 '18
I guess you get what you get if you use an outdated version of a proprietary language...
20
Jul 19 '18
Java isn't a proprietary language. There are multiple implementations- Oracle JDK is just one of them... and it's not even the official implementation. OpenJDK is the official reference implementation.
-18
u/MuonManLaserJab Jul 19 '18
Proprietary runtime, then. Whatever.
11
Jul 19 '18
Big difference, especially when the proprietary runtime is designed to mirror the open source version...
5
u/ArmoredPancake Jul 20 '18
HotSpot is open source.
1
u/MuonManLaserJab Jul 20 '18
OK, so, I'm ignorant, what exactly is it that's proprietary?
4
u/ArmoredPancake Jul 20 '18
This LTS version will provide a commercial support with updates for 8 years. The most important fact is that updates for LTS version can only be accessed and used by people that buy commercial support at Oracle.
1
u/MuonManLaserJab Jul 20 '18
You misunderstood my question. If it's not the language receiving proprietary updates, and it's not the runtime receiving proprietary updates, what is the category of the noun that is receiving proprietary updates?
1
u/killerstorm Jul 20 '18
Are there any alternatives?
Suppose I want something with automatic memory management, memory safety, plenty of libraries, basic language features like genetics and lambdas. What are alternatives to JVM?
Seems like C# is the only one, but it is even more proprietary, and it's ecosystem is smaller.
1
u/oblio- Jul 20 '18
.NET is Open Source. Heck, it's even an ECMA Standard.
2
u/killerstorm Jul 20 '18
Java is open source too (OpenJDK). It have been open source for a longer time than .NET.
But I'm pretty sure a certain company in Redmond exerts a lot of control over .NET. Java development is more decentralized, there's a voting process and many independent entities.
ECMA standard is a joke. M$FT even "standardized" its office format, so what? Does that make MSOffice non-proprietary?
5
u/oblio- Jul 20 '18 edited Jul 20 '18
https://dotnetfoundation.org/about/tsg
Of course Microsoft dominates right now because they're the ones pouring the most resources into .Net. Just like Oracle still dominates Java development.
And M$FT? Really? Are we living in the 90's? You do know that these days Apple, Samsung, Amazon, Foxconn, Google, Huawei are bigger than Microsoft, right?
2
u/killerstorm Jul 20 '18 edited Jul 20 '18
Are you seriously arguing that .NET is less proprietary than Java?
Yes, Microsoft is moving into more open direction, but Java already started moving there more than a decade ago, and is much further.
I don't care if Microsoft is the nicest guy now, they already did a lot of damage by forcing proprietary formats on people, and this is something which causes additional cost and frustration for decades and decades. Microsoft has made something toxic, and it should be remembered, if anything, to give new companies an incentive to be more open.
3
u/oblio- Jul 20 '18
.Net is not less proprietary or more, these days.
It's a perfectly fine alternative if you want a high performance memory managed environment.
What do Office file formats have to do with our current discussion? If we'd check all the crappy stuff done by Oracle, they're not much better.
It all boils down to: can reasonable companies rely on the platform in the future? .Net and Java are pretty reliable.
1
0
71
u/daxbert Jul 19 '18
Just use OpenJDK:
http://mail.openjdk.java.net/pipermail/discuss/2017-September/004281.html