Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java x86 compatible with Java ARM?

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?

like image 442
b4ux1t3 Avatar asked Jul 05 '14 03:07

b4ux1t3


People also ask

Is x86 compatible with ARM?

Apple's Arm-based Macs, Google's Chrome OS, and Microsoft's Windows on Arm are all modern examples where software needs to run on both Arm and x86-64 architectures.

Is ARM and x86 the same?

ARM vs. x86. The primary difference between the two major processors is that ARM utilizes smaller silicon space and lower power, conserving energy for longer battery life. Meanwhile, x86 delivers far more power and higher performance.

Can Java run on ARM processor?

The Java ecosystem on Arm systems In theory, all software written in Java should work on all Arm-based systems. However, some big projects make specific tweaks, such as using natively built libraries, that tie them to a specific architecture.

Are ARM chips x86?

Intel processors (sometimes known as X86 for Windows 32-bit programs) use Complex Instruction Set Computer (CISC), whereas ARM processors use Reduced Instruction Set Computer (RISC).


1 Answers

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.

like image 199
Elliott Frisch Avatar answered Oct 12 '22 04:10

Elliott Frisch