Asset 20 8 2
Does AI recommend your business? Run the free check →

Join 15,000 business owners, marketers and entrepreneurs. The Sunday newsletter you'll be annoyed only arrives once a week.

Article

Is Java Free? Yes, but Which Java Matters

Yes, Java is free for most people, including businesses, if you use the right version. Oracle says Oracle JDK 25 and later is available under its No-Fee Terms and Conditions licence, which permits free use for all users, even commercial and production use, and Oracle OpenJDK builds are open source under the GPL version 2 with the Classpath Exception.

The reason this question is so confusing is that Java's licensing has changed several times, and a lot of the advice online is from a different era. Some older Java versions are free only for personal and development use. Here's what Oracle's own Java FAQ says, as of October 2026, in plain English.

The three ways to get Java from Oracle

VersionLicenceFree for business?
Oracle OpenJDKGNU GPL v2 with the Classpath ExceptionYes, open source
Oracle JDK 25 and laterOracle No-Fee Terms and Conditions (NFTC)Yes, including commercial and production use
Oracle JDK 21, 17, 11 and 8OTN License Agreement for Java SE, or via My Oracle Support for customersFree only for personal use, development, testing and similar limited uses

What the no-fee licence allows

Oracle's FAQ describes the NFTC as a licence that, subject to its conditions, permits free use for all users, even commercial and production use. It's been in use since September 2021. For a small business running the latest long-term support version, that's the key point: you can install current Oracle JDK on your servers and laptops without a subscription.

The no-fee licence does have conditions. Oracle's licence page, for example, says you mustn't cause or permit reverse engineering, disassembly or decompilation of the programs, except where the law allows it. Normal use, development and deployment aren't affected by that.

The time limit most people miss

Here's the detail that catches companies out. The free NFTC period for each long-term support version doesn't last forever. Oracle says Oracle JDK 25 updates are planned to be available under the NFTC until September 2028, one year after the release of JDK 29 LTS in September 2027.

After that, Oracle intends to switch subsequent JDK 25 updates to the OTN licence, the same licence it uses for Java 8, 11, 17 and 21 updates now. So if you stay on JDK 25 after September 2028 and keep installing Oracle's updates, those updates won't be free for production use any more. You'd either move to the next LTS release, switch to OpenJDK builds or pay for support.

What the OTN licence allows

The OTN licence is the one behind most "Java isn't free" warnings. Oracle's FAQ says it permits personal use, development, testing, prototyping, demonstrating and some other limited uses at no cost. Running business applications in production on those versions sits outside those uses, which is why Oracle offers them to paying customers through My Oracle Support.

A quick licence check for small businesses

QuestionIf the answer is yes
Are you on Oracle JDK 25 or later?Free under the NFTC, including production, until its free update period ends
Are you using an OpenJDK build?Free under the GPL with the Classpath Exception
Are you running Oracle JDK 8, 11, 17 or 21 in production?Check your update source; the OTN licence only covers limited uses at no cost
Do you only use Java on your own machine to learn or test?Free under the OTN licence's personal, development and testing uses

Most home users never need to think about this at all. If you only installed Java to run one desktop program, you're using it personally, which is free under every licence on this page. The licence questions really matter for businesses running Java applications on servers or across staff computers.

How to use Java for free without licence worries

  1. Check which Java version you're running and where it came from. The licence depends on both.
  2. For new projects, use the latest Oracle JDK release under the NFTC, or an Oracle OpenJDK build under the GPL.
  3. If you're on Oracle JDK 21, 17, 11 or 8 in production, check whether you're receiving updates under the OTN licence, and plan a move to a current release or OpenJDK.
  4. Put the end of the free update period for your version in your diary, so a licence change never surprises you.
  5. Keep a simple record of which machines run which Java build.

If you're learning to code, my guide to free coding courses is a good starting point, and IntelliJ IDEA, the editor many Java developers use, has its own free story, covered in whether IntelliJ is free. For a wider comparison of tools, see the best code editors.

My verdict

Java is free if you're on a current Oracle JDK release or an OpenJDK build, including for business and production use. It isn't free for production on older Oracle JDK versions receiving updates under the OTN licence. Most of the scary stories come from companies running old versions without checking. Stay current, or choose OpenJDK, and you won't pay a thing.

Work with me

Want AI doing the heavy lifting in your marketing?

I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.

Frequently asked questions

Is Java free for commercial use?

Yes, on current releases. Oracle says Oracle JDK 25 and later is available under the No-Fee Terms and Conditions licence, which permits free use for all users, even commercial and production use.

Is OpenJDK free?

Yes. Oracle's FAQ says Oracle OpenJDK releases are under the open source GNU General Public License v2 with the Classpath Exception.

Is Java 8 free?

For personal use, development and testing, yes. Oracle lists Oracle JDK 8 under the OTN License Agreement, which permits those limited uses at no cost. Running business applications in production isn't among those uses.

How long will Oracle JDK 25 stay free?

Oracle says JDK 25 updates are planned under the no-fee licence until September 2028. After that, Oracle intends to use the OTN licence for later JDK 25 updates.

Do I need Java on my home computer?

Only if a program you use asks for it. If you install Java just to run a desktop program for yourself, that's personal use, which is free under every Oracle licence covered on this page.

What happens to Oracle JDK 25 after September 2028?

Oracle says it intends to use the OTN licence for JDK 25 updates after the free period ends. Production users would then move to a newer release, switch to OpenJDK or pay for support.

Why do people say Java isn't free?

Because older Oracle JDK versions receiving updates under the OTN licence aren't free for production use. Current Oracle JDK releases and OpenJDK builds are free.

Published and maintained by the Lilach Bullock team, covering marketing, AI and business growth.
Your buyers are asking AI who to use. Does it say you?

See for free whether ChatGPT, Claude, Perplexity, Gemini and Google name you, and get the plan to become the answer.

Check my AI visibility →
Sundays only

Get the Sunday newsletter.

One email a week. AI experiments, marketing tactics, and the workflows Lilach is building right now in her own business.

Subscribe free

Let’s get your marketing running on AI.

Book a free 30-minute call

We figure out what you need, where AI fits in, and what working together would look like.

Book the call →

Or take the 30-second calculator

You’ll see the hours and the money quietly leaking out of your week, and the three workflows worth building first.

Take the calculator →

Or grab the free AI resource library

Prompt packs, templates, checklists, and swipe files. The exact tools I build for paying clients. Yours, free.

Get the library →
Keep reading

More from the blog.