• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is java internally written in C

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell : Is java internally written in C
 
Prashant kumar Singh
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulas Ergin
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15219
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic