Technology

Java was a three-day hotfix away from dying horribly on stage

About 5 min read1 cited sources ↓How we report
Deterministic geometric article art with a Technology section label and headline “Java was a three-day hotfix away from dying horribly on stage” over translucent rectangles.
In this article

Java was a three-day hotfix away from dying horribly on stage, The Register's account of The Java Story — a programming language documentary that debuted on YouTube this Friday — identifies the film's organizing theme as the improbable origins of important technologies. Java's case is more dramatic than most: the language began as a failed attempt at set-top box dominance, nearly died in 1994 after its first sponsor walked away, and then, in 1995, needed a complete threading rewrite three days before its public debut at a major industry conference. The language that now consistently ranks near the top of the TIOBE programming language popularity index and underpins large enterprise applications worldwide survived each crisis in sequence.

Three days from dying horribly on stage

The first crisis came in 1994. Sun Microsystems had formed an experimental subsidiary called FirstPerson to compete for a Time Warner contract to build interactive video-on-demand software for television set-top boxes. James Gosling wrote a language and runtime for the project, called Oak. The contract went instead to Silicon Graphics, a Sun rival. Sun took the defeat hard, laying off most of FirstPerson's staff and keeping only twelve engineers — among them Gosling and project manager Kim Polese — to continue work on Oak. Tim Lindholm, who had joined just a month before the collapse, told The Register: "We were like refugees in a bombed-out bunker."

The second crisis came a year later and was narrower still. After the set-top box failure, one of the surviving engineers had been experimenting with the recently released Mosaic browser and proposed the World Wide Web as Oak's next target. The team built a Mosaic clone called WebRunner to run animations, a precursor to what would become Java applets. Oak was renamed Java in early 1995, and the team planned to introduce the language at SunWorld, the industry convention that would become JavaOne's predecessor. But the runtime was crashing badly.

Lindholm and fellow new hire Frank Yellin had been assigned the commercial-grade implementation, responsible for making Gosling's advanced concepts — threading and garbage collection — function in practice. Threading proved the harder problem. There were no libraries available to implement it, and Lindholm knew relatively little about the concept. After investigation, he concluded that Java's threading model was "fundamentally broken. It was totally screwed up," he told The Register. The problem lay in system interrupts being issued while the SPARC processor executed an instruction: the system could not recover the state that had been flushed from memory and would therefore "die horribly." The fix required that interrupts happen only at designated points. Three days before the SunWorld conference, Lindholm rewrote the entire threads package. When Sun CEO Scott McNealy demonstrated Java on stage, Lindholm sat in the audience waiting for the worst. The rewrite held. Lindholm and Yellin later co-authored the original JVM specification.

The engineer who came in from the cold

Lindholm's path to Sun was shaped by accident as much as design, according to The Register. He had been living in a tent in Minnesota during a brutally cold winter, aspiring toward mathematics rather than computing. "Computer science was for people who couldn't be real mathematicians," he said. The cold forced a practical decision: he secured an internship at Argonne National Laboratory in Illinois, where the lab's use of Prolog gave him early experience with virtual machines. "I learned to write to very high-quality virtual machines with things like garbage collection and embeddability," he said. That expertise carried him to Xerox PARC and eventually to Sun, where the knowledge he had not originally sought proved to be precisely what the project required.

The battles that followed

Java's survival past SunWorld did not end its troubles. In 1996, Microsoft licensed Java for Windows, then added proprietary APIs and declined to support others — a product known as Microsoft's J++. Sun alleged that the changes were designed to undermine Java's cross-platform compatibility and steer developers toward Windows-specific implementations. The legal dispute consumed years of engineering resources. "I spent days in deposition talking about this under oath," Lindholm recalled. The disputes concluded with Microsoft paying Sun nearly $2 billion through a series of settlements, per The Register.

The documentary also covers the informal open-source program Lindholm ran before that term entered common use. Sun distributed the Java binary runtime as a free download and provided source code to anyone who requested it; thousands did. The Java internet domain attracted so much traffic that the team ran what The Register describes as a pirate T3 line into the office. Sun eventually invited Richard Stallman to discuss formal open-source release, but he struck Sun executives as "too radical," Lindholm recalled. Sun would not officially release Java as open source for another decade.

The film and the company behind it

The Java Story joins a genre that Cult.Repo — short for Culture Repository — helped establish: professionally produced documentaries on programming languages, with earlier entries covering C++, Python, and React. Those films originated with Honeypot, a tech recruiting platform that funded them to build its developer audience. In 2019, Honeypot was acquired by XING, which later rebranded as New Work SE. Cult.Repo founder Emma Tracey subsequently bought the production company back from New Work SE, reuniting the original team, according to The Register. The Java Story is Cult.Repo's first release under independent ownership.

The film features Gosling alongside Mark Reinhold and Brian Goetz, both senior Oracle Java architects. Where earlier entries in the series required, as The Register put it, "a Hollywood-style effort to construct a Hero's Journey" around slower progressions, Java arrived with what the same publication calls "a veritable Love Island of dramas" already in the record — and enough of them, it turns out, to fill a documentary without embellishment.

Read the sources

The documents cited in this report. Source statements remain attributed to their authors.

  1. Java was a three-day hotfix away from dying horribly on stagetheregister.com

java three hotfix away dying horriblytechnology