![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> Why do we need to have different implementations of JVM for different platforms when JVM by Sun can do everything for us??
The JVM on a particular system know how to translate the bytecode for THAT system. The different JVMs are how that you can write the program once and run it anywhere(that has a JVM). The JVM does the actual talking to the Operating System. For instance, to open a File is differnt on different Operating Systems. To open a file on UNIX you would use the open() function. On NT you would use the OpenFile() function. The Windows NT JVM will translate a call to open a file into a call to OpenFile() while a JVM for UNIX will translate those same bytecodes into a call to open(). Lee Replies: |
Sponsored Links
|