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

Is java internally written in C

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
please tell : Is java internally written in C
Prashant kumar Singh
Greenhorn

Joined: Nov 04, 2006
Posts: 22
Hi raj,
In java there is two parts one is java compiler and anothere is java virtual machine. Java Compiler is a pure java program written in java languages.But Java virtual machine is also a program but it is written in C language. If you want to see it then you have to some IDE like eclipse or Jbuilder through this IDE you have to open rt.jar file which will be in side your jdk1.5/what version you are using.

Regards,
Prashant Kumar Singh
Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
what rt.jar proves,does it says that compiler is written in java because rt.jar contains some class files.I have seen rt.jar through eclipse.How to prove that jvm is written in C.Infact,please tell what all is included in the jvm,does it include all utilities to run .class files,but that is in jre..then what is jvm.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42263
    
  64
In addition, the class libraries are a mixture of Java and C. You can take a look at them (they come with the JDK in a file called src.zip), and while most clases are in Java, some have methods labelled "native' - those are implemented in C. The complete source of the JDK is available under a license called something like the "Sun Research License" (?), if you want to take an in-depth look at it.


Ping & DNS - my free Android networking tools app
Ulas Ergin
Ranch Hand

Joined: Oct 10, 2002
Posts: 77
JVM itself is written in C which has its source code (C/C++ code) available for download on suns's site.
Shaan Shar
Ranch Hand

Joined: Dec 27, 2005
Posts: 1249

Originally posted by Ulf Dittmer:
In addition, the class libraries are a mixture of Java and C. You can take a look at them (they come with the JDK in a file called src.zip), and while most clases are in Java, some have methods labelled "native' - those are implemented in C. The complete source of the JDK is available under a license called something like the "Sun Research License" (?), if you want to take an in-depth look at it.


So Ulf can we take it.. I mean is it also comes free.. If yes then could you please let me know the URL for that....


The Best way to predict your future is to create it - Every great individual common man
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14266
    
  21

It's simply on the JDK download page. Scroll down to "J2SE 5.0 JDK Source Code". By the way, the source is available, but it is not open source yet. Sun is planning to make the source available under an open source license before the end of 2006.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is java internally written in C