DEV Community

Cover image for Java is still free!

Java is still free!

Lemuel Ogbunude on November 10, 2018

I see a lot of posts lamenting about how Java is now being paid for. I feel a lot of people are getting it wrong...and right. Oracle JDK ...
Collapse
 
rohit profile image
Rohit Awate

Hi! I've been planning to release Everest coupled with a JRE. Can I use an OpenJDK JRE and not pay Oracle?

Also, I plan to offer paid plans with Everest which would use a Node.js powered sync service running in the cloud. I'm confused since Everest itself is completely open-source but it will simply make API calls to a paid service. So how would that work?

Collapse
 
rrampage profile image
Raunak Ramakrishnan

If you are using OpenJDK, you need not worry about paying Oracle. I had a look at Everest and looks like you are using JavaFX which is bundled by default with Oracle JDK and not included in OpenJDK 8. You can include OpenJFX through Maven.

Also, have a look at how IntelliJ Community does their bundling. They are also JavaFX based and open source.

Disclaimer: I am not a lawyer, so take advice with a grain of salt.

Collapse
 
rohit profile image
Rohit Awate

Thank you! This was really helpful.

Collapse
 
lemuelogbunude profile image
Lemuel Ogbunude • Edited

You could go for OpenJDK to avoid any hassle.

Though you could still consider continuing with what you have.

In one of the links I provided it read:

If someone is using Oracle JDK 8 to run commercial software, after January 2019 do they need to purchase a license?

No. The user can continue to use Oracle JDK 8 indefinitely without paying. The only cost is if they want to get updates beyond Jan 2019, in which case they will need to purchase an "Oracle Java SE subscription.

Also, this was there:

Starting with Java SE 11, neither the OpenJDK builds or the Oracle JDK binaries include the JavaFX libraries. The JavaFX components will now be delivered as a separate SDK, or as artifacts that can be used via build tools (e.g. Apache Maven, Gradle et al.). As a positive consequence of this decoupling, JavaFX development can now have its own roadmap.

JavaFX is still being developed in OpenJFX, which is a project under the OpenJDK community umbrella.

So if JDK8 is fine for you then you could continue with your project with no worries, then probably later you could switch to OpenJDK 11 which can be interchanged with Oracle's JDK11.

In case you didn't go through the links I provided, I strongly recommend you go through them as they would address the questions you might have :)

Collapse
 
rohit profile image
Rohit Awate

Thank you, this really cleared up my doubts. I'll definitely consider moving to OpenJDK 11 and add OpenJFX via Maven.

Collapse
 
rrampage profile image
Raunak Ramakrishnan

Great article. Unfortunately, there has been a lot of FUD recently about how Java itself is no longer free.

Some more great and open JDK options are:

Also, OpenJDK 8 will be supported long-term by Red Hat.

Collapse
 
lemuelogbunude profile image
Lemuel Ogbunude

Thanks for the info!

As an addition to the OpenJDK options I have also heard of AdoptOpenJDK

Collapse
 
codevault profile image
Sergiu Mureşan

Thank you very much for clearing this one up.

I was convinced Java would go under after I heard the news from someone! Glad to hear it's still nice and free. \o/

Collapse
 
lemuelogbunude profile image
Lemuel Ogbunude

You're welcome :)

Collapse
 
gypsydave5 profile image
David Wickes

Java is still free!

and still over priced 😜

Collapse
 
lemuelogbunude profile image
Lemuel Ogbunude

😅...Lol...well it's just for the Oracle JDK and not OpenJDK and I feel $2.5/month wouldn't be an issue for companies if they are using Oracle's JDK.