I'm looking to run a java 8 application on the raspberry pi zero. Which is a recommended image to use to run Java 8?

I've been using Java 8 tools on a Raspberry Pi 2, so I see no reason why it should not work on a Zero. It won't be as snappy as on a x86_64 or even an ARM with better CPU/more RAM but it will work. I'd recommend to use Raspian because it's easy to install and maintain, sudo apt-get install openjdk-8-jdk to get all you need to execute and compile Java programs.

  • And that is the big question. The Pi Zero is not just a little less powerful (single core vs. quad core of the Pi2) but has also a different architecture (ARMv6 vs. ARMv7 on the Pi2). – Ghanima Feb 17 '16 at 22:38
  • There are armel and armhf packages for Debian, so it is possible to run them. Whether it makes sense to do it is another question. But if it's possible, it should be tried :-) – kba Feb 17 '16 at 23:06
  • Oh definitely :) – Ghanima Feb 17 '16 at 23:10

Yes, you can run Java 8 on a Raspberry Pi Zero.

I have a Raspberry Pi B and B+ and Oracle Java 8 is running fine on both and is pre-installed on Raspian OS. Raspberry Pi B and B+ using the same ARMv6 architecture like the Raspberry Pi Zero. So there is no reason why it should not run on the Zero. Also the Raspberry Pi Foundation is looking after compability across the variant models.

You can also run openJDK 8 but Oracle JDK runs faster because it compiled with the hard-float ABI for ARMv6/7.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.