aspose file tools*
The moose likes Beginning Java and the fly likes What is difference between JDK, JRE and JVM? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is difference between JDK, JRE and JVM?" Watch "What is difference between JDK, JRE and JVM?" New topic
Author

What is difference between JDK, JRE and JVM?

minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
To compile the java program we requires compiler.
In jdk, we have javac.exe, which is responsible for compilation of the program, which generates bytecode (.class file) .

To run the bytecode (.class file), we require java run time environment JRE, which is given by java.exe. In jdk as well as in jre we have java.exe.

javac.exe and java.exe both launches the jvm for compilation as well as to run the program?


Minal Silimkar
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
Your understanding is correct except

javac.exe and java.exe both launches the jvm for compilation as well as to run the program?


javac.exe doens't launch the jvm, only java.exe does.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
javac.exe doens't launch the jvm

The Java compiler is written in Java, so, yes, javac.exe lanuches a JVM.


Ping & DNS - updated with new look and Ping home screen widget
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13875
    
  10

See question and answer #18 in our Java Beginners FAQ.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is difference between JDK, JRE and JVM?
 
Similar Threads
Installation Query
Difference between JRE and JVM
Newer version of java
Regarding java.exe and javaw.exe
JVM and JRE