Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Machine code depends on machine or OS? (http://www.go4expert.com/forums/machine-code-depends-machine-os-t27745/)

Garima12345 8Feb2012 02:31

Machine code depends on machine or OS?
 
Machine code depends on hardware or OS on that hardware?

There is one computer. Initially it has Win Xp installed in it. The user wanted to run a java program so he downloaded JRE for Win Xp.

Now the user changes the operating system to Win 7 ( but The hardware & the ROM chipset, motherboard etc are all same only the OS is different )

Now he needs to download JRE for Win 7 to run that java program.... WHY??

Does it mean machine code depends on OS?
I'hv recently learnt that conversion from bytecode to machine code is done by reading the contents of ROM by the JVM. So if the m/c code is generated by seeing ROM,, Why there is different JRE for different OS for the same computer?

Pls help..

Garima12345 8Feb2012 21:58

Re: Machine code depends on machine or OS?
 
Guyz pls help me

aryan123 23Feb2012 22:42

Re: Machine code depends on machine or OS?
 
Machine code depends on both hardware & operating system.


All times are GMT +5.5. The time now is 20:17.