Old Browser

You are using an outdated browser. Please update your browser.


Wandboard Java Hands On

In today’s tutorial we are showing how to quickly install Java onto the Wandboard and explorer the Java2Demo applications.

To get started you will need to prepare a Wandboard that boots from a SD card containing Ubuntu that can be found on the Wandboard Download Page.

Step 1: Download Ubuntu 12 for your Wandboard from the Wandboard Download Pageand create a bootable SD card. (refer to the document that comes with the download).

Step 2: Boot your Wandboard. All instructions below should be performed on your Wandboard.

Step 3: Get the Oracle Java files 

Open Firefox and go to Oracle JDK download site as below:


Step 3a: Click to accept the License agreement (after reading it).

Step 3b: Select “jdk-7u45-linux-arm-vfp-sflt.tar.gz” (as highlighted).

Note : Select SOFT FLOAT ABI since Wandboard Ubuntu 12 currently does not support hard float.

The JDK will be saved in “~/Downloads” directory (default Firefox download location)

Step 3c: On the same page, scroll down a bit further and select the demo images “jdk-7u45-linux-arm-vfp-sflt-demos.tar.gz

The JDK demos will be saved in “~/Downloads” directory (default Firefox download location)

Step 4: Now that you have all files. Let’s install them.


Step 4a: Install JDK7 on Wandboard/Ubuntu by opening the terminal window

Change the current directory to ~/Downloads ($cd Downloads)
Unzip JDK 7 to /opt ($sudo tar zxvf jdk-7u45-linux-arm-vfp-sflt.tar.gz –C /opt)

Step 4a: Install JDK demos on Wandboard/Ubuntu in a simalar manner as installing the JDK by using the terminal window

Change the current directory to ~/Downloads ($cd Downloads)
Unzip JDK 7 demos to /opt ($sudo tar zxvf jdk-7u45-linux-arm-vfp-sflt-demos.tar.gz –C /opt)

Step 5: Ensure that you installed Java

Step 5a: Open terminal window.
Add JDK bin into PATH variable. (#export PATH=$PATH:/opt/jdk1.7.0_45/bin)
Test Java version. (#java –version)
(If you see the message as the shown above screen, it means Java VM has been installed successfully!)

Step 6: Java Demo Playtime

Now all is installed. Let’s get the demo loaded on your desktop.


To run the demo application:
($cd /opt/jdk1.7.0_45/demo/jfc/Java2D)
($java –jar Java2Demo.jar)

Within moments you will see the Java2Demo application appearing on your desktop. (as below).