Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

platform independency of java

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
rak shar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic