Page 1 of 1

Which JDK 8 binary should I install on Raspbian?

Posted: Thu Feb 11, 2016 6:45 pm
by zhoozhoo
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?

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

Posted: Fri Feb 12, 2016 12:22 pm
by mattlewis
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

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

Posted: Fri Feb 12, 2016 12:30 pm
by xranby
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.

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

Posted: Fri Feb 12, 2016 3:44 pm
by zhoozhoo
Thanks for the answers!