• 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

Two part Question on JVM

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a two part question.
1. Does anyone know a link where I can download just the JVM and install it independantly on any PC.
2. Without going into great detail, how different is the Microsoft VM from the JVM.
Thanks
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You HAVE to use a JVM that is appropriate for the OS that it is loaded on. That is the magic that allows OUR code to be platform independant - the JVM does the translation for us.
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The MS JVM uses up to the equivalent of Sun's JVM version 1.1.4

Sun's current stable JVM is 1.3.1 and 1.4.0 is in beta.
 
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
On reading the question again, I am not sure what you mean by "any PC". It is the operating system that the PC is running that is the issue.
The VM that Microsoft puts out is (was) very close to the JVM that sun created to run on the Windows OS. The Java Virtual Machine Specifications define exactly what the behavior has to be. Then the lower level classes are revised so that they talk to the appropriate OS correctly. All those low level OS interactions are what make the JVM platform DEPENDANT.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I mean is I want to know if there is a JVM install seperate from the JDK and/or JRE that can be installed. for istance, if you install Windows XP, there is not a JVM present. But when you go to java.sun.com you are prompted to download and install the JVM. But you cannot save it and install it later. I would like to have the JVM's available to install at leisure.
 
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
Oh - is that all.
Just go here and download the windows version.
The JVM is part of the JRE, and needs the related classes to make it work. You can't have a JVM stand alone and expect it to work.
[ January 08, 2002: Message edited by: Cindy Glass ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Cindy. Now, how does the Applet in a browser know which VM to use when executing if you have the MS VM and the JRE installed on your system. (Of course the MS VM is already there)
 
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
Well, for Windows, there is a registry that get updated with all the pertainant information.
I can browse my NT registry using
C:\WINNT\system32\regedt32.exe
If you look in the Local Machine page under JavaSoft there are entries for JDK, Plug-in, JRE, Java WEb Start and prefs. In those it names the locations for the OS to look.
Normally when you download a Plug-in for a browser the registry gets updated for you during set-up. The Plugin can be downloaded from here.
Of course if you are using XP - I have not a clue.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But if you install the Plug-in from SUN does that over-ride the MS one or is there something in the .CLASS files that tells the OS which one to use if both exist.
Am I making any since??
I want to be sure that if I write an applet using SUN's JDK, that SUN's browser plug-in handles the applet and not MS's.
[ January 08, 2002: Message edited by: Gregg Bolinger ]
 
Marilyn de Queiroz
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The clue to the browser about which JVM to used to reside in the html that calls the applet. It may have changed. See Sun's section about making theirs the default and about installing and using with other browsers as well.
[ January 08, 2002: Message edited by: Marilyn deQueiroz ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, that answered my question
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic