zhoozhoo
Posts: 2
Joined: Wed Feb 18, 2015 3:39 pm

Which JDK 8 binary should I install on Raspbian?

Thu Feb 11, 2016 6:45 pm

I'm trying to upgrade JDK 8 that came with Raspbian Jessie to the latest version, but there are multiple binaries avaiable on Oracle web site:

1. Java SE Development Kit Linux ARM v6/v7 Hard Float ABI (jdk-8u73-linux-arm32-vfp-hflt.tar.gz)
2. Java SE Development Kit Linux ARM v6/v7 Hard Float ABI (jdk-8u73-linux-arm64-vfp-hflt.tar.gz)
3. Java SE Embedded Version 8 Update 73 - ARMv5/ARMv6/ARMv7 Linux - SoftFP ABI, Little Endian 2 (ejdk-8u73-linux-arm-sflt.tar.gz)
4. Java SE Embedded Version 8 Update 73 - ARM v6/v7 Linux - VFP, HardFP ABI, Little Endian 1 (ejdk-8u73-linux-armv6-vfp-hflt.tar.gz)

Which one is the right one?

mattlewis
Posts: 113
Joined: Sat Jan 12, 2013 3:05 pm
Location: UK
Contact: Website

Re: Which JDK 8 binary should I install on Raspbian?

Fri Feb 12, 2016 12:22 pm

Personally I just use the Oracle JDK provided by raspbian (currently JDK 8u65):

Code: Select all

sudo apt-get update && sudo apt-get install oracle-java8-jdk
java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

Matt
http://www.diozero.com/

User avatar
xranby
Posts: 539
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Which JDK 8 binary should I install on Raspbian?

Fri Feb 12, 2016 12:30 pm

Option 1 or 4 is correct for use on a Rasbian system
1. Java SE Development Kit Linux ARM v6/v7 Hard Float ABI (jdk-8u73-linux-arm32-vfp-hflt.tar.gz)
4. Java SE Embedded Version 8 Update 73 - ARM v6/v7 Linux - VFP, HardFP ABI, Little Endian 1 (ejdk-8u73-linux-armv6-vfp-hflt.tar.gz)

Option 2 requires a 64 bit CPU
Option 3 requires a "soft-float" linux system where all applications are compiled *not* to use a floating point VFP unit., it uses a different ABI compared to Raspbian.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

zhoozhoo
Posts: 2
Joined: Wed Feb 18, 2015 3:39 pm

Re: Which JDK 8 binary should I install on Raspbian?

Fri Feb 12, 2016 3:44 pm

Thanks for the answers!

Return to “Java”