This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JAVA Virtual Machine" Watch "JAVA Virtual Machine" New topic
Author

JAVA Virtual Machine

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
Hello,
Please do let me know the use of JAVA Virtual Machine?Whats its use?Where does it reside?


Thanks,
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

It's the program that executes Java bytecode -- i.e., java.exe.


[Jess in Action][AskingGoodQuestions]
Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
Can there be an instance of JVM?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Originally posted by Rakesh Mestry:
Can there be an instance of JVM?


"An instance of the JVM" would generally refer to one copy of the running program; you can have many copies of java.exe running at once, so indeed, you can have many instances of the JVM on one computer.

Technically, some JVM implementations might allow you to have more then one instance inside a single program, although Sun's JVM implmentation can't do that.
Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
Do environment variables have a relation with JVM.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37936
    
  22
Rather flattering little history of the JVM here, and more details on Wikipedia.

The environment variables (well, the PATH) tell the OS where to find the JVM.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Don't forget CLASSPATH. It informs the JVM where to look for classes by default.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Mandar Khire
Ranch Hand

Joined: Sep 11, 2007
Posts: 492

Try this link
jvm
------------------------------
again jvm


Millions saw the apple fall, but Newton asked why.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37936
    
  22
Why do you keep reopening old threads? Read this FAQ.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAVA Virtual Machine
 
Similar Threads
ArrayList methods-clear or removeall-for cleaning up objects
Recommended Books for learning JVM Internal Architecture
Measure Free Memory/CUP using Java
Java
Garbage collection and var scope