B4J Question B4J on Raspberry + LCD

Discussion in 'B4J Questions' started by rdkartono, Aug 25, 2015.

  1. rdkartono

    rdkartono Member Licensed User

    Hi Guys,

    I have been playing with Raspberry and LCD in these days, and found a problem.
    I have following setups :
    1. Raspberry Pi 2 connect with HDMI 7 inch LCD Sainsmart using HDMI cables
    2. Raspberry Pi B connect to Tontec 3.2 inch LCD (itontec.com) using their propietary connectors.

    Both setup 1 and 2 have boot normally, can enter Xwindow (using startx), already updated, upgraded, and dist-upgraded. Both have running B4J-Bridge at background normally.

    When i write a simple UI program using B4J, and send it to Setup 1 via B4J-bridge, the program can display and work normally.
    However when I send the same program to Setup 2, nothing displayed.

    Anybody have the same experience and having the solution ?


  2. Erel

    Erel Administrator Staff Member Licensed User

    In the long run you should avoid running a UI app on Raspberry Pi boards. Oracle has removed support for ARM boards in Java 8.

    Make sure that Java 7 is installed on the device.
  3. rdkartono

    rdkartono Member Licensed User

    Thank you for the confirmation.
    However newer Raspbian image already have built-in JDK 8, should I downgrade it to JDK 7 ?

    How about using OpenJDK and OpenJFX ?
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes, you will need to downgrade to Java 7.

    If Oracle doesn't support then it is probably not the way to go. Especially as UI apps are quite slow on Raspberry Pi.

    You can instead create a server solution and access it from the browser.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice