Beaglebone Green/Black Java for Linux ARM

Hello,

I’m new to using the Beaglebone. I decided to use it on one of my current projects. When I heard about the Beaglebone Green I decided that would be the one I get since I have no need for HDMI in my application. Anyways the BBG for me is functioning as a way to deploy a java application that communicates with the cloud and custom electrical hardware via USB/WiFi.

So anyways I need Java to run my application as a packaged .JAR executable, so I installed the Linux ARM Java manually, by downloading it on my local machine and transfering it to the /temp folder, I unpacked it into the correct directory and set the PATH variable to make it available for use. I checked the Java version to make sure I installed it correctly. Next off I installed Maven and Gradle, I tested them by checking their version and confirmed they installed successfully. The reason I need all this stuff is because a piece of software called BowlerStudio I’m using in my main application runs off Java 8 and requires Maven and Gradle to build. When I attempt to build the application from source its seems to have an issue locating the JavaFX Libraries that are supposed to be included in the latest version of Java for ARM, the latest version and the version I intalled was Java 8 update 60 for ARM. Any idea why its unable to find JavaFX ?

BowlerStudio
https://github.com/NeuronRobotics/BowlerStudio

What steps did you use to install Java? I think there are multiple builds/packages for Java 8 update 60 for ARM.

I've been slacking on java..

Oracle Java 8 update 33 was the version i had packaged for
"oracle-java8-installer"

Right now i'm building the install for Oracle Java 8 update 60..

I've noticed Oracle Java 9 Beta 81 is now out, does anyone want that packaged?

Regards,

Robert, do you still follow the Oracle java updates?

They have not been updated in a while.

I am using these to run OpenHab on a Beaglebone, as the openjdk version seems to be a lot slower.

Anyone else experiences with speed differences between openjdk and oracle jdk?

Kind Regards,
Johan

Robert, do you still follow the Oracle java updates?

Not really.. only if people ask..

They have not been updated in a while.

I am using these to run OpenHab on a Beaglebone, as the openjdk version
seems to be a lot slower.

Anyone else experiences with speed differences between openjdk and oracle
jdk?

Well i updated Java 8 for you:

https://github.com/rcn-ee/repos/commit/20dac792c418534741f5a515eba68674bfa37a35

Just "sudo apt update ; sudo apt upgrade" to get it..

Otherwise it looks like Java 9 is now a no go for ARM:

http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

Regards,

Thanks!

The missing java 9 distribution is odd, I am sure I saw a version 9 arm version a few days ago.

Kind Regards,
Johan

Thanks!

The missing java 9 distribution is odd, I am sure I saw a version 9 arm
version a few days ago.

Java 9 is interesting in that there are changes in Java, the JDK
distribution media (eg. no jre directory, etc), and the ARM distribution -
Oracle no longer shipping "embedded java".
So a lot of change.

I dug out some references:

https://blogs.oracle.com/java-platform-group/convergence-of-oracle-java-se-embedded-with-oracle-jdk
Oracle submission of their ARM port to OpenJdk -
http://openjdk.java.net/jeps/297
discussion -
http://mail.openjdk.java.net/pipermail/aarch32-port-dev/2016-September/000475.html
OpenJdk AArch32 project - http://openjdk.java.net/projects/aarch32-port/
(also http://openjdk.java.net/projects/aarch64-port/ )

Azul OpenJdk distriubutions - https://www.azul.com/downloads/zulu-embedded/
question on distribution -
http://mail.openjdk.java.net/pipermail/aarch32-port-dev/2017-December/000841.html

Debian Java 9 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876426

Changes in Java9 - https://www.azul.com/jdk-9-pitfalls-for-the-unwary/

IBM J9 JVM - https://github.com/eclipse/openj9/issues/53

https://www.azul.com/jdk-9-pitfalls-for-the-unwary/

If that is not enough the Release versioning was going to change in version
10 to "18.3", "18.9"... . But this was reversed. However you may see both
all over the place....
http://mail.openjdk.java.net/pipermail/java-se-spec-experts/2017-December/000021.html
/ http://openjdk.java.net/projects/jdk/10/spec/ /
http://www.oracle.com/technetwork/java/eol-135779.html

HTH Alex

Robert, do you still follow the Oracle java updates?

They have not been updated in a while.

I am using these to run OpenHab on a Beaglebone, as the openjdk version
seems to be a lot slower.

Anyone else experiences with speed differences between openjdk and oracle
jdk?

Do you have any details on versions , workloads , throughput/ latency
numbers etc? The oracle and OpenJdk codebases are different (different JIT
compilers etc) for ARM so you will likely see differene performance results.
Would be interesting to see.

Thanks
Alex

Robert, there is a new oracle jvm in town:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-arm32-vfp-hflt.tar.gz?AuthParam=1516697271_80e178dcd68ec5b82f12bd7c88eb3c25