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: 409
posted
0
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: 35258
7
posted
0
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.
JVM itself is written in C which has its source code (C/C++ code) available for download on suns's site.
Ankur Sharma
Ranch Hand
Joined: Dec 27, 2005
Posts: 1234
posted
0
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
Ankur Sharma
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.