• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Is java internally written in C

 
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please tell : Is java internally written in C
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1252
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic