aspose file tools*
The moose likes Beginning Java and the fly likes platform independency of java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "platform independency of java" Watch "platform independency of java" New topic
Author

platform independency of java

rak shar
Greenhorn

Joined: Dec 06, 2002
Posts: 9
Hi guys
i want to know whether java is machine independent or OS independent.
Though we have different versions of JAVA runtime for different os's (linux, windows)
but suppose if i have 2 machines (say running Intel pIII 550) one having a windows os and the other having a linux os.
Will platform independency come into picture in this scenario or will it be the same output jre will interpret into in both the cases.
Say if i have 2 different processors (Intel & amd) with the same o/s (windows) .In this case will jre interpret the java byte code into 2 different types of machine language(processor being different)
Kindli can some 1 clarify whether java is processor independent or o/s independent
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Java bytecode is machine-independent. The virtual machine used as the interpreter, however, is both machine-dependent and OS-dependent. Whoever maintains the VM code is the one who has to manage all the porting issues and such.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
rak shar
Greenhorn

Joined: Dec 06, 2002
Posts: 9
Hi Michael
Thanks for u r prompt reply. Just one more clarification. So can we say if we have a windows os on different machines (intel & amd) we will be having 2 different jre's or just 1 jre is available for 1 o/s & the o/s takes care how to communicate with the machine.
Jon Strayer
Ranch Hand

Joined: Dec 04, 2002
Posts: 133
Originally posted by rak shar:
Hi Michael
Thanks for u r prompt reply. Just one more clarification. So can we say if we have a windows os on different machines (intel & amd) we will be having 2 different jre's or just 1 jre is available for 1 o/s & the o/s takes care how to communicate with the machine.

One JRE.


Jon
 
 
subject: platform independency of java