Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7440697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:53:33+00:00 2026-05-29T10:53:33+00:00

Is the compiler of Java Bootstrapped ? How was the first compiler of java

  • 0

Is the compiler of Java Bootstrapped ?

How was the first compiler of java written if it is bootstrapped ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:53:34+00:00Added an answer on May 29, 2026 at 10:53 am

    It’s an interesting question. The current javac compiler from Oracle, which is only one compiler of many (1), is actually written in Java which means, yes, you could consider it bootstrapped, assuming your definition means “has been bootstrapped so that it can now compile itself” (2).

    The virtual machine itself is written mostly in C++ from memory so, while the compiler is bootstrapped, building the JRE requires a C++ compiler.


    (1) GCJ is another one, and it happens to be written in C, so it depends on which compiler you’re referring to.

    (2) The single word “bootstapped” in your question could be taken in a number of ways. If your definition of “bootstrapped” means “has to be bootstrapped to get a working compiler”, then the answer is no.


    As to how the first Java compiler was written before bootstrapping, that remains lost in the mists of time (or the minds of Gosling et al).

    Given that a compiler can be written relatively easily without any of the fancy OO concepts, my guess would be that they simply wrote the first one (or few) in C or C++.

    That seems borne out by this entry from the Wayback Machine:

    The team’s efforts kicked off the development of a new object-oriented programming language that Gosling called Oak, after the tree outside his window. Loosely based on C++, the language was stripped down to a bare minimum in order to be compatible with the limited space the chips in handheld devices would offer, and was designed to allow programmers to more easily support dynamic, changeable hardware.

    and, later:

    Arthur van Hoff wrote an Oak compiler entirely in Oak instead of in C. Naughton and Jonathan Payne built an Oak-ready browser called “WebRunner.” The first applet — Duke waving back at his parents over the Internet — was born.

    In addition, from Patrick Naughton’s epilogue in his book “The java Handbook” (my bold):

    Now that we had a plan of record, to ship Oak in source form on the net, things got much more productive. We started focusing on fixing all of the loose ends in the language. Jonathan Payne was working on optimizing the interpreter. Arthur van Hoff rewrote the compiler in Oak itself, replacing the C version that James originally wrote. This was also a good test of the environment since this compiler was the largest single Oak program ever written. A fair number of burned out engineers were using this time as paid vacation by Sun, but for the most part the core team ignored them and got back to work.

    So, it looks like the original version of the “Java” (Oak) compiler was written in C, then bootstrapped from there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When the Java compiler autoboxes a primitive to the wrapper class, what code does
I want the Java compiler to give me the highest level of warnings possible.
is Jasper a Java compiler itself?
I'm trying to redirect the java compiler output to a file. I thought it's
I was wondering about what makes the primary Java compiler (javac by sun) so
Recently I started to use Eclipse's java compiler, because it is significantly faster than
I'm looking for the source code of Sun's standard java compiler, javac . jdk1.6.0_07
As an experiment we want to build our products using the Eclipse java compiler
I googled,I checked wikipedia.None of them helped me to find an official java compiler
Java has compiler checked exceptions . When I made transition to C++, I learned

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.