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
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 35439
    
    9
javac.exe doens't launch the jvm

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


Android appsImageJ pluginsJava web charts
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12952
    
    3

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: What is difference between JDK, JRE and JVM?
 
Similar Threads
Difference between JRE and JVM
Installation Query
Newer version of java
JVM and JRE
Regarding java.exe and javaw.exe