I've installed latest version of Raspbian onto PI1 Model B+.
My understanding is that recent versions of Raspbian come pre-bundled with java hard float version as appears to be mentioned in this article.
But it appears the soft float version has been installed as when I check dir that determines if java is hard or soft version the arm-linux-gnueabihf
folder is present :
enter image description here
which according to this post indicates that this is the soft version.
Should I just re-install java myself onto Raspbian ? Can I install linux version of java onto Raspbian ? I'm attempting to install hard float version for increased performance. Is the java version installed on Raspbian customised for Pi ?
2 Answers 2
which according to this post : How can I tell if I am using the hard-float or the soft-float version of Debian/Raspbian?
You've read the accepted answer there wrong. Ikku is saying if there is a /lib/arm-linux-gnueabihf
, you have a hard float Raspbian. I don't think there is even a soft float repo around anymore.
There are two versions of java widely used on GNU/Linux including Raspbian, however. The default one is usually openJDK, since it is open source. The other, which usually requires a download from Oracle, is of course Oracle java. They both follow the same standard and so should be interchangeable version for version, but the Oracle one presumably has more money behind it and not surprisingly thus might generally outperform openJDK -- you'd have to look around, I'd assume various people have benchmarked this online.
In the link you included, the Pi Foundation claims Oracle definitely is better on ARM, and hence they are now including Oracle in the repos. You can check which version you have installed:
> java -version
java version "1.7.0_75"
OpenJDK Runtime Environment ...
And Oracle looks something like:
java version "1.8.0_25"
Java(TM) SE Runtime Environment
According to this answer, you have the hard-float version of Java. The existence of /lib/arm-linux-gnueabihf
means that you have hard-float version.
All the latest Raspbian images come pre-installed with Java (hard-float version).
The hard float version will of course provide more performance since it is optimized for ARM architecture, especially for Raspberry Pi.
/lib/arm-linux-gnueabihf
, you have a hard float raspbian. I don't think there is even a soft float repo anymore.