give me reasons why JVM is platform dependent?
i dont find convincing answers. The ultimate aim of a compiler is to make codes that are
to be understood by native machine processor ? if this is the case why there is an interference of operating system(platform)?

Recommended Answers

if you don't find the JVM specs and the JLS convincing, there's little hope for you.

Jump to Post

All 3 Replies

if you don't find the JVM specs and the JLS convincing, there's little hope for you.

To do things like accessing files, handling the mouse events, or writing to the screen, the JVM has to deal with the operating system, not just the CPU hardware.

Member Avatar

A Mac, is not the same as a PC, is not the same as a UNIX box, is not the same as a LINUX box, is not the same as...
Different computers do things (such as what JamesCherrill listed) differently.
However, with different JVMs, this allows you to write the SAME code for ALL computers (which have a JVM)
(At least... that's the idea.)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.