Answer:
Java is called portable because you can compile a java code which will spew out a byte-code, and then you run that code with Java Virtual Machine. Java Virtual Machine is like an interpreter, which reads the compiled byte-code and runs it. So first of all, you need to install the JVM on the system you want.
Explanation: