Thursday, May 2, 2013

Installing OpenJDK 6 on the Beaglebone Black

Note (10/02/2013): For information on installing Java 7 on the Beaglebone Black, see this post.

My new Beaglebone Black arrived yesterday. There isn't an OpenJDK 6 package for the version of Ångström Linux on the Beaglebone Black as there was for the previous Beaglebone.  This means that you need to locate and download the .ipk files that opkg uses to install software.

You can install Java by following the instructions at http://beaglebone.cameon.net/home/doing-java-development. Use the links provided on the page to download the .ipk files needed to install the packages listed.

You may need to install libgif4 before you can install openjdk-6-common. If you do, be sure to run opkg update first, then try opkg install libgif4.

Before you can install the openjdk-6-vm-zero package, you will need to download and install the libffi5 package. You can download the libff5 package from http://www.angstrom-distribution.org/repo/?pkgname=libffi5. You want the armv7a version.  The installation process is the same as described on the Cameon page at the link above.




3 comments:

  1. This did the trick. Thanks.

    ReplyDelete
  2. Thank you very much, very useful. Having got everything up and running and building the class on the BBB. It isn't creating a JaR file. Also when trying to use the remote debug I get:
    ERROR: transport library not found: dt_docket
    ERROR: JDWP Transport dt_docket failed to initialize, TRANSPORT_LOAD(509)
    JDWP exit error AGENT_ERROR_TRANSPORT_LOAD(196): No transports initialized [../../../src/share/back/debugInit.c:708]
    FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)
    ./debug: line 1: 6604 Aborted java -agentlib:jdwp=transport=dt_docket,address=1044,server=y,suspend=y -cp build/clsses cantley.co.uk.clsMain

    ReplyDelete
  3. Shortly after posting this I realised that I had a typo, having corrected the silly mistake it worked fine.

    Thank you very much! :)

    ReplyDelete