The JVM is an important component of the Java Platform . Because JVMs are available for many hardware and software platforms , Java can be both middleware and a platform in its own right -- hence the expression `` write once , run anywhere . '' JVM is a crucial component of the Java platform , and because JVMs are available for many hardware and software platforms , Java can be both middleware and a platform in its own right , hence the trademark write once , run anywhere .