• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM ?

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when JVM gets loaded ? how it works in relation to OS ? It is said that JVM exits when we have only Deamon threads remain?
when JVM comes to picture ?
Another related question How JVM and JRE are related ??
thanks
Shrinivas

[This message has been edited by Shrini Kulkarni (edited February 09, 2001).]
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JVMs work inside a browser (well, they can also be in little chips for embedded systems but...). The browser controls the loading etc of the JVM when something on a web page needs it.
A JRE (Java Runtime Environment) is for running applications outside of a browser. Often applications "bundle" a copy of a JRE with the application code when you install it on your machine.
Sun provides the specifications for creating a JVM to vendors. Sun has a download page that you can get the JREs from. Of course they also let you download the SDK for developing code.
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JVM exits when there are no more user threads, since deamon threads only live to serve user threads.
I believe the JVM is a bit more generic then the actual plug-in or integrated browser JVM. The Java Virtual Machine is what runs your bite code in general, whether it's in the browser or on your desktop. JRE includes more than just the JVM.
I could be wrong, but this is was I've been told.
 
Shrini Kulkarni
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply.
How about stand-alone Java applications (not applets) - when JVM starts ? My understanding is this. JVM is sits on the top of OS and executes the byte-code.I am not sure about the function of JRE ?
I am still not clear about the difference between JVM and JRE ?
Is JRE super set of JVM ?can some body explain with example or an anology ? I am trying to understand these two from user's point of veiw (more basic)
Regards
Shrinivas
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a stand alone application there is only the JRE which sits on top of the OS and inerprets the byte-code. Technically the JVM can be considered to be contained in the JRE.
The following tells how to set up a JRE application: http://java.sun.com/products/jdk/1.1.7B/jre/example/index.html
[This message has been edited by Cindy Glass (edited February 12, 2001).]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic