File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes jvm vs java compiler Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "jvm vs java compiler" Watch "jvm vs java compiler" New topic
Author

jvm vs java compiler

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

May I know what are the roles and responsibilities of JVM and compiler.

thank and regards,
rahul
Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 345

Compiler converts your source to byte code (class files), JVM executes this byte code. JVM actually converts the byte code instructions to native (OS specific) instructions. Hence you only need a JVM for every platform while your byte code can remain the same. That's the philosophy of Java, write once run anywhere.
[ September 08, 2008: Message edited by: Abhinav Srivastava ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jvm vs java compiler
 
Similar Threads
JVM and JIT compiler
JIT compiler
I think those who decided bombing Iraq/Afganistan hate Java
Jdk and Jvm
Exam doubt