aspose file tools*
The moose likes Java in General and the fly likes in which language java is written Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "in which language java is written" Watch "in which language java is written" New topic
Author

in which language java is written

untak goel
Greenhorn

Joined: Apr 26, 2005
Posts: 6
in which language java is written?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

This question only makes sense if you ask about a particular implementation of Java, of course. Sun is only one vendor of Java virtual machines.

But most JVMs are written in C/C++, with a little assembly.


[Jess in Action][AskingGoodQuestions]
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
In fact, part of the JVM and other tools are written in Java with a C++/Asm wrapper


42
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Originally posted by Jeroen Wenting:
In fact, part of the JVM and other tools are written in Java with a C++/Asm wrapper


Yep, the javac compiler and most of the other tools like javap, javah, etc are, indeed, written in Java. I'm not sure about the claim that part of Sun's JVM is itself written in Java; I suspect that it would come down to a semantic argument at the end, whether a particular bit of code was part of the JVM or part of the library. 99% of the APIs are written in Java, of course, with an occasional native method here and there.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
As EFH, pointed out earlier, Sun's JVM is only one of several. I would assume that other vendors, such as IBM, probably use C/C++ to implement much of the JVM and Java to implement the API.

Layne


Java API Documentation
The Java Tutorial
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
except for the initial classloader all classloaders are for example written in Java.
While part of the standard API, the JVM itself can't work without them as they're what loads your application classes.

Grey area of course where the standard API is an inseperable part of the JVM
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: in which language java is written