Skip to content
Why Is It Called 'Java'? — The Origin of the Name

Why Is It Called 'Java'? — The Origin of the Name

DodaTech Updated Jun 20, 2026 4 min read

Imagine a world where we write “Hello, World” in Oak, compile it with the Oak compiler, and run it on the Oak Virtual Machine. It almost happened. Java’s origin story is a tale of trademark trouble, a tree outside an office window, and copious amounts of coffee.

The Story

In 1991, James Gosling, Mike Sheridan, and Patrick Naughton were working on a project at Sun Microsystems that would eventually change the internet forever. The project, originally called “Green,” was designed to create software for consumer electronics — set-top boxes, remote controls, interactive TVs. Gosling built the language that powered it and needed a name.

He called it “Oak” after an oak tree he could see from his office window at Sun’s campus in Menlo Park, California. The name was simple, solid, and natural — like the language itself. Unfortunately, Oak was already trademarked by Oak Technologies, a computer graphics company. The Green team had to find a new name.

A brainstorming session produced several candidates: Silk, Jolt, Ruby, DNA, and Java. Silk was rejected because it sounded too “soft.” Jolt was already used by a beverage company. Ruby was considered but ultimately passed over (it would later be used by another language entirely). Java — named after the Indonesian island known for its coffee — won out.

Why Java? The team had been drinking copious amounts of Java coffee during the project. The name was energetic, memorable, and just unusual enough to stand out. It also fit the marketing angle: coffee is hot, lively, and addictive — exactly the qualities Sun wanted for their new platform.

How It Evolved

The name Java became official in 1995, and the coffee connection was baked into the branding from day one. The iconic coffee cup logo — a steaming mug of black coffee — became one of the most recognizable tech logos in the world. The Java mascot, Duke, was created in 1995 by Joe Palrang and originally represented a “software agent” that could run on any device.

Sun Microsystems leaned hard into the coffee theme. Developer conferences had coffee bars. The Java slogan “Write Once, Run Anywhere” was paired with imagery of coffee traveling the globe. The island of Java even became a tourist destination for Java developers, with Sun sponsoring trips and events there.

The trademark issue that forced the rename from Oak turned out to be one of the best things that ever happened to the language. “Java” was far more marketable, more distinctive, and more memorable than “Oak” could ever have been. It’s hard to imagine the language achieving the same cultural impact with a name as plain as Oak.

Did You Know?

James Gosling has said he regrets nothing about the name change, though he occasionally muses about what might have been. The “Oak” name lives on in Java’s internal package naming convention: javax was originally oak. The Java logo’s coffee cup was designed by a team at Sun and has undergone three major redesigns but always kept the steam rising from the cup.

FAQ

What was Java originally called?
Java was originally called “Oak” after the oak tree outside James Gosling’s office at Sun Microsystems. It was renamed to Java in 1995 due to trademark issues with Oak Technologies.
What other names were considered for Java?
Several names were considered including Silk, Jolt, Ruby, DNA, and Java. Silk was too soft-sounding, Jolt was trademarked by a beverage company, and Ruby was set aside (it later became the Ruby programming language).
Is Java named after the island or the coffee?
Both. Java is named after the Indonesian island Java, which is famous for its coffee. The team chose the name because they were drinking Java coffee during development and the name fit the energetic vibe they wanted for the language.

Related Etymologies

Why Is It Called 'Python'? Why Is It Called 'Ruby'? Why Is It Called 'Linux'?

Built by the developers of DodaTech

Doda Browser, DodaZIP & Durga Antivirus Pro