17

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?

Piotr Kula
  • 17,307
  • 6
  • 65
  • 104
Darren Wilkinson
  • 2,912
  • 4
  • 26
  • 27
  • 1
    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 06: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! http://www.h-online.com/open/news/item/Developer-preview-of-Java-SE-8-for-ARM-now-available-1772644.html – Darren Wilkinson Dec 19 '12 at 21:04

3 Answers3

10

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.

asalamon74
  • 4,048
  • 4
  • 29
  • 31
7

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

Lukas Knuth
  • 949
  • 2
  • 7
  • 19
user4281
  • 71
  • 1
  • 1
2

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
Simulant
  • 653
  • 1
  • 9
  • 22