Right now I am working on a project that requires sending ascii commands via serial to control a machine (i.e, turning a machine on off, change speed, etc.). The whole thing will be controlled with a touch screen GUI interface.

The problem I am running to is the amount of time it takes to load a jar, which is ~15 seconds on a model B+. This time was measured with a test jar that contains only two buttons, nothing else.

Seeing as JDK8 for ARM no longer supports JavaFX, I am searching for alternatives. As I see it, here are my options:

  1. Create a frankenstein JDK, combining JDK8 for ARM and OpenJFX.
  2. Switch to Swing (not sure how much this would help, if at all).
  3. Learn another language such as Python (which I have no problem with).

What can I do do achieve a quicker launch? How much of a difference would it make if I switched to the Model 2B?

Keep in mind, the only things I need on the Pi are be the ability to run the app itself with touchscreen support, the ability to send serial, and ssh.

  • I'm really questioning the cause of your problem here. A simple jar file should start very quickly. How heavy is the background program?
    – Jacobm001
    Aug 26, 2015 at 19:53
  • Well... I would say that #WindowsIOT would be perfect here (it just my opinion!) - You can connect a touch screen to it easily. You can create a GUI using Blend, very easy and looks nice... but you need to learn a bit of C# ... which is very similar to Java anyway but you get the benefit of debugging on your main PC, built into Visual Studio for free.
    – Piotr Kula
    Aug 28, 2015 at 7:34
  • @ppumkin after buying visual studio. And Windows IOT has limited support for almost everything
    – aastefanov
    Aug 28, 2015 at 8:54
  • Its freeeee. Community Edition.. all Freee. Free Free Free! Limited Support? It just got released 2 months ago, so technically it has a lot of cool things, relatively compared to allot of other stuff out there already. Like I said, just my opinion, but the app will load quickly, and creating the GUI is easy... Lets wait a year before we slag it off completely.. for now its only more features coming soon.
    – Piotr Kula
    Aug 28, 2015 at 8:56
  • 1
    @ppumkin Thanks, I'll definitely look into that. And I have access to Visual Studio via my university to that's not a problem.
    – iamjoshlee
    Aug 28, 2015 at 16:17

2 Answers 2


Option 1, using Oracle JDK8 for ARM and add OpenJFX into, it is possible. I haven't tried it myself, but an Oracle-Member presented this as a valid solution on a Presentation about JavaFX in general. I would go with this option.

You could use an older release from Oracle JDK. JavaFX support was removed on JDK 8u33 so all releases prior to this still support JavaFX, but you don't have any security updates any longer.

Switching to a Model 2B Raspberry Pi should improve the start up time (no guaranty) because the JVM can be executed in parallel on 4 cores.

Use a different language? Always a valid Option if you really want to spent the time for this but personally I would not do it.


Boot To QT C++

Windows 10 Iot Core using C#

Switch to Rasp 3 which has 64 Bit instruction set

  • Your answer could do with a little more detail
    – Darth Vader
    Nov 3, 2016 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.