File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes java virtual machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java virtual machine" Watch "java virtual machine" New topic

java virtual machine

Gopalakrishnan Rangaswamy

Joined: Sep 11, 2000
Posts: 5
why jvm is called a virtual machine and not by someother name.
why can't be a same jvm be made available for all the OSs.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hi gopal!
JVM is called JavaVirtual Machine because it doesnot exist is a virtual thing which perfoms some action.thats why it is named virtual machine.
and about your next question..why cont they put some other name.
my answer is why cont they put this name only for it,because "virtual machime" well siuts the functionality it is perfoming.
senthil rajan
Ranch Hand

Joined: Aug 31, 2005
Posts: 36
Actually JVM acts as a interface between your program and the operating system. JVM interacts with the operating system functionalities, and the functionalities differ in operating systems. So that we can't have same JVM for all operating system.
Rick O'Shay
Ranch Hand

Joined: Sep 19, 2004
Posts: 531
It would be impossible to have one JVM for all operating systems because the JVM relies on operating system calls to provide many of the facilities which Java programs use. Java programs should run on any operating system but since each one is dramatically different, you need a JVM specific to each operating system. The JVM exposes a consistent interface to Java programs but it has to adapt those services to the actualy operating system underneath. Moreover the CPU instruction sets vary wildly so if nothing else you would have to compile Java to a form specific to each CPU.
I agree. Here's the link:
subject: java virtual machine
It's not a secret anymore!