B4J Tutorial [IoT] Linux Embedded Boards - Gettings started

Discussion in 'B4J Tutorials' started by Erel, Nov 16, 2015.

  1. Erel

    Erel Administrator Staff Member Licensed User

    There are many Linux based, embedded boards available. Most or all of them support Java which means that they also support B4J.

    In order to start development we need to install Java JRE 7+ (JDK is also good) and to run B4J-Bridge.

    The steps required:
    1. Connect to the board with shell access (SSH).
    2. Find the correct Java version and download it to your PC.
    Search Google for the board name + Java to find it.
    Examples:
    - Raspberry Pi - Java is already installed
    - Intel Edison - Linux x86
    - BeagleBoard - http://beagleboard.org/project/java/

    I find it easiest to download the tar.gz file. Unzip it on your pc and copy the tar file with SSH to the board.
    Unpack it with:
    Code:
    tar -xf jdk-xxx.tar
    Check that it is working with:
    Code:
    jdk-xx/bin/java -version
    3. Download B4J-Bridge and run it.
    If the board is connected to the internet then you can download it with:
    Code:
    wget www.b4x.com/b4j/files/b4j-bridge.jar
    Otherwise you should download it to your PC: www.b4x.com/b4j/files/b4j-bridge.jar and then copy it to the board.

    Run it with:
    Code:
    jdk-xxx/bin/java -jar b4j-bridge.jar
    4. Connect the IDE to the IP address printed in the terminal (Tools - B4J Bridge - Connect).
    Note that B4J-Bridge will print the first ip address reported by the OS. It is possible that the board has multiple ip addresses. You an enter any of the ip addresses in the IDE.
     
    Last edited: Nov 22, 2015
  2. SimonElck

    SimonElck Member Licensed User

    I just unpacked my raspberry pi 3 and am trying this.
    I got the bridge running with this command:
    java -jar b4j-bridge.jar (not jdk- .....that did not work)

    Now I read on the forum somewhere that GUI programs are no longer supported by raspbian, what is the latest on this please?
    (meaning I don't have to download JavaFX as it will not work anyway, or did I misunderstand?)

    Cannot wait to try things...
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread for this question.
     
Loading...
  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