Enzo

Tuesday, June 24, 2014

OpenJFX for ARM v6 (hard and soft float)

Hi there,

This post is for all of you that play around with JavaFX on embedded devices. Not everyone is able or willing to build it's own version of OpenJFX and so I decided to build it regularly and provide a download link to it.
So here we go, I've set up the build in a Linux virtual machine on my mac and built the OpenJFX v6 hard and soft float version today.
You can find both versions here:

JDK8 OpenJFX ARMv6 hard float

JDK8 OpenJFX ARMv6 soft float

To use this you first need to install Java SE 8 embedded on your embedded system which you can find here (hard and soft float are available):

Java SE 8 Embedded and Java SE 8 Embedded HardFloat 

After you have installed Java8 on your embedded device you need to tell the Java runtime that you will use another jfxrt.jar instead of the default one. 
If you have installed JDK8 in /opt/jdk1.8.0 and the OpenJFX version in ~/openjfx on your embedded device you have to call your jar like follows:

/opt/jdk1.8.0/bin/java -Djava.ext.dirs=~/openjfx/armv6hf-sdk/rt/lib/ext -jar YOUR_APP.jar

Attention:
The soft float version won't run on the Raspberry Pi (but you should be able to use the hard float version).

I hope this is useful for one or the other of you...

Keep coding...

4 comments:

  1. Java SE 8 Embedded hard float fro ARMv6 does not exist on link: http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/index.html#javase8

    ReplyDelete
    Replies
    1. Hi Ladislav,
      You're right, I forgot to add the link...now it should be better :)

      Thanx for the hint and cheers,

      Gerrit

      Delete
  2. Watched the "JavaFX on i.MX6 Debian Jessie" (https://www.youtube.com/watch?v=DoZCL2iu5K4) video you created and had a number of questions to ask about the demo:

    1. Are you using the Cubox-i4pro?
    2. Which Debian Jessie image is being used?
    3. What Vivante driver is being used (open source or closed one)?
    4. Is GPU acceleration enabled for the framebuffer and if so how did you do it?
    5. What version of JavaFX is being used (closed source JavaFX or open source OpenJFX)?
    6. Which touch screen did you use?
    7. How did you setup the touch screen on the software side?

    ReplyDelete
    Replies
    1. 1. yep
      2. link can be found on the cubox-i forum
      3. vivante driver came with jessie image and should be open source
      4. yep, jfx uses direct fb access from console (no x-window)
      5. JDK8 SE Embedded from Oracle which is based on OpenJFX
      6. 7" touch screen from chalkboard electronics
      7. simply connect it via hdmi

      Cheers,

      Gerrit

      Delete