Start Learning
Javaneer
Back to stage
Stage 0·Meet Java

The History of Java

James Gosling, the Green Team, Oak becoming Java, and the idea of 'Write Once, Run Anywhere'.

10 min readBeginner
On this page

Every great technology has an origin story. Java's begins in the early 1990s with a small, ambitious team, a failed gadget, and a lucky pivot that changed software forever.

The Green Team (1991)

In 1991, a group of engineers at Sun Microsystems - led by James Gosling - formed a secret project called the Green Team. Their goal had nothing to do with the internet. They wanted to build software for consumer electronics: smart TVs, set-top boxes, and handheld devices.

The problem? Every device used a different kind of processor. Writing software that ran on all of them was a nightmare. The team needed a language whose programs could run on any device without being rewritten.

One language, many machines

Imagine writing a novel that automatically appears in perfect English, German, Japanese, and Spanish the moment anyone opens it - no separate translations needed. The Green Team wanted code like that: write it once, and it runs anywhere. This idea became Java's most famous slogan: "Write Once, Run Anywhere."

From Oak to Java

Gosling first named the language Oak, after an oak tree outside his office window. But "Oak" was already trademarked, so the team needed a new name.

After a brainstorming session (and a lot of coffee), they chose Java - named after Java coffee, the drink that fueled countless late-night coding sessions. That's why Java's logo is a steaming cup of coffee, and why so many Java terms - like the "JavaBeans" component model - keep the coffee theme.

A gadget ahead of its time

The Green Team's first product was the Star7, a handheld touchscreen device with a wireless network - in 1992! It flopped commercially, but the language built for it survived and thrived.

The web changes everything (1995)

Just as the consumer-electronics plan was fizzling, the World Wide Web exploded in popularity. Sun realized that Java's "run anywhere" superpower was perfect for the web: a single program could run inside any browser, on any operating system.

In 1995, Java was officially released to the world, along with applets - small Java programs that ran inside web pages. Suddenly, static web pages could have interactive content. Developers were captivated, and Java's popularity skyrocketed.

Key milestones

YearMilestone
1991The Green Team starts; the language is named Oak
1995Java 1.0 is publicly released - "Write Once, Run Anywhere"
1998Java 2 (J2SE) - a major expansion of the platform
2004Java 5 - generics, annotations, enhanced for-loop
2010Oracle acquires Sun Microsystems and takes over Java
2014Java 8 - lambdas and the Stream API (a huge modernization)
2017Java 9 - the module system; six-month release cadence begins
2021Java 17 - a major Long-Term Support (LTS) release
2023Java 21 - virtual threads, another LTS release

Java keeps evolving

Java is far from a museum piece. Since 2017 a new version ships every six months, steadily adding modern features. The language you're learning today is actively maintained and more capable than ever.

Quick check

Why was the language's name changed from 'Oak' to 'Java'?

Key takeaways

  • Java was created by James Gosling and the Green Team at Sun Microsystems, starting in 1991.
  • It was originally built for consumer electronics and first named 'Oak'.
  • It was renamed 'Java' after Java coffee - hence the coffee-cup logo.
  • Java 1.0 launched in 1995 and rode the rise of the web to huge popularity.
  • Oracle acquired Sun (and Java) in 2010, and Java now ships a new version every six months.

Next, we'll look at who actually maintains Java today, and how new features make it into the language.