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

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 for hfx642

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.