aspose file tools*
The moose likes Beginning Java and the fly likes javac and java (compiler and executable) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javac and java (compiler and executable)" Watch "javac and java (compiler and executable)" New topic
Author

javac and java (compiler and executable)

Ratheesh Narayanan
Ranch Hand

Joined: Oct 30, 2004
Posts: 38
Hi,

Can any one tell me, in which language java compiler and the interpreter is developed? If java compiler (javac) is written in java language itself how it can be an exe(executable) file? Is this interpreter means JVM?

Thanks in advance,
ratheesh


SCJP 1.4 & SCBCD 1.5
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14432
    
  23

There is no single answer to your question, because different companies are making different implementations of the Java VM and compiler.

Sun's Java compiler seems to have been written at least partly in Java, because there was a class com.sun.tools.javac.Main in some versions of the JDK (not sure if it still exists in Java 5.0).


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Devesh H Rao
Ranch Hand

Joined: Feb 09, 2002
Posts: 687

Originally posted by ratheesh narayanan:
Hi,

Can any one tell me, in which language java compiler and the interpreter is developed? If java compiler (javac) is written in java language itself how it can be an exe(executable) file? Is this interpreter means JVM?

Thanks in advance,
ratheesh


It's in C
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javac and java (compiler and executable)