Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A recent press release from Oracle suggests that they have just released a JVM for Raspbian. The key text is:

Java SE 7 Update 6 introduces a JDK for Linux on ARM v6 and v7 to address “general purpose” ARM systems, such as those used for the emerging micro-server ARM market, and for development platforms such as Raspberry Pi. This new JDK for Linux on ARM is made available under the Oracle Binary Code License and is available for download at no cost for development and production use on general-purpose platforms.

Have they really released a hard float JVM, and if so, how can I get it and install it on a Raspbian system?

share|improve this question
Redwood Shores, CA – August 14, 2012 : Very recent I'd say! I'll keep an eye on this :) – Jivings Aug 14 '12 at 22:08
Note that you will want the small footprint JVM when it arrives - the Raspberry is a small device seen with Java eyes. – Thorbjørn Ravn Andersen Aug 15 '12 at 6:16
Possibly more important than the hard/soft float question is whether Oracle managed to get their JIT compiler working correctly on ARM. Assuming you're not doing some serious maths I'd bet the jit compiler represents a larger performance increase than hardware float support. – Dan B Aug 22 '12 at 18:07
It now looks as though the new developer preview of Java 8 is hard float and does run on the pi! h-online.com/open/news/item/… – darrenjw Dec 19 '12 at 21:04
up vote 10 down vote accepted

The filename of the installer is jdk-7u6-linux-arm-sfp.tar.gz so it's soft-float and not hard-float.

Oracle states in this press release:

One caveat is that the current binary is softfloat ABI only, so it won't work with (for example) the Raspbian distribution which uses the hardfloat ABI. We are planning to add hardfloat support in an upcoming JDK release, as well as support for JavaFX on ARM.

share|improve this answer
That is not the news I was hoping for... :-( Looking forward to the next release... – darrenjw Aug 15 '12 at 6:02
Will OpenSDK not suffice for you at the moment? – ppumkin Aug 15 '12 at 7:19
The OpenJDK works, but is very slow, and the Cacao JIT is fundamentally broken. If performance isn't an issue, the plain OpenJDK is fine. – darrenjw Aug 15 '12 at 7:36
You can use the soft-float version with the e.g. Debian arm image. The overall Linux performance is worse, but the Java performance is significant better. – keiki Aug 15 '12 at 15:02

Oracle have now released a developer preview of Java 8 that works on the Raspberry Pi (hard-float)

share|improve this answer

Oracle released the full Version (no longer preview) of Java 8 and Java 7 for the ARM architecture of the Raspberry Pi: link to Java 8.

You can also use from the command line:

sudo apt-get update
sudo apt-get install oracle-java8-jdk
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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