Reputation: 498
Can any given Java program written targeting an x86 platform also run on an ARM platform, or will there need to be OS-dependent code written to handle OS-specific functionality?
Upvotes: 6
Views: 4147
Reputation: 201447
Yes. The Java runtime environment (JRE) includes a virtual machine which allows for true cross platform software. As long as you aren't using native libraries (or JNI), everything should be truly cross platform. Also, you need to check that the version level of the virtual machine is equivalent for some corner cases.
Upvotes: 6