Past Meetup

Internet-of-Things Hackerspace

This Meetup is past

67 people went

Location visible to members

Details

We are extremely lucky this month to have Oracle's Angela Caicedo pay a return visit to MelbJVM to run a workshop on Java 8's embedded capabilities.

Angela visited us back in March 2012 (http://www.meetup.com/Melbourne-Java-JVM-Users-Group/events/65679652/) and has been to Australia many times before as part of her role as a Java evangelist. You may have also seen her present previously at either Sun or Oracle 'Developer Days' and if so, you'll also know that she is easy going, explains things exceptionally well and isn't short of a cool demo or two. She is also one of the instructors in the new Raspberry Pi MOOC (https://apex.oracle.com/pls/apex/f?p=44785:145:0::::P145_EVENT_ID,P145_PREV_PAGE:1841,143).

Abstract:

We bring the "things", you do the hacking...

With new low cost devices entering the market, access to the world of embedded computing is become more cost affordable. And, with continued advances in Java, developers can easily begin creating innovative applications that leverage these low cost devices.

We will bring a variety of embedded devices, sensors, LEDs, and toys that you can program in Java. After a short demonstration, we will give you the opportunity to experiment with the hardware to create your own innovative device mashups. Let's see what creativity audience can come up with to build the Future!

What you'll need:

For this meetup we'll be sharing some toys like Raspberry Pi's and other IoT devices that Oracle are bringing along.

We'll also need some laptops. We are aiming at least 1 laptop per group of 3 people. Preferably Windows 7 this time. See below for VMs for other OS'.

Additionally those of you who have Raspberry Pi's already please bring them along. It will mean more people can participate.

Please let us know in the questions when you RSVP if you can bring either of the above items.

Space is limited for the workshop so priority will be given to those that can bring laptops or Pi's.

The Software

We've prepared Windows 7 VM's with the software already to go, along with an SD card image for your Pi to speed up the setup process for you (thats if you dont have Rasbian + JavaME8 already) But if you've already got Windows 7 already and/or Raspbian on your Pi, you are welcome to get just the bits you need rather than download an entire image. Links are included in the instructions below.

Laptop with Windows 7 - 32 or 64 bit only

*Needs to be Windows 7 (either 32 or 64 bit) to run the JavaME SDK & emulator. Compatibility is funky with other versions.

*Install Netbeans 8 (https://netbeans.org/downloads/index.html) (Windows Platform / All) & the ME 8 SDK (http://www.oracle.com/technetwork/java/javame/javamobile/download/sdk/index.html)

* Follow the instructions here (http://docs.oracle.com/javame/8.0/sdk-dev-guide/before_starting.htm)

* Add the Netbeans JavaME plugin by following the instructions here (http://docs.oracle.com/javame/8.0/sdk-dev-guide/setup_nbenv.htm)

* Install SSH / terminal emulation software such as putty (http://putty.org/)

All other Laptops (Other Windows versions, Linux, Mac)

If you don't have Windows 7, or you don't want the hassle of installing Netbeans and the ME SDK yourself - we have a VMware image that will run with most virtualisation software.

* Install VirtualBox (http://virtualbox.org/) or VMWare (https://my.vmware.com/web/vmware/downloads) software. (VirtualBox is free for all platforms, VMWare has a free Player for Windows / Linux)

* Download the VMWare image from the dropbox (https://www.dropbox.com/sh/bgv39cong054zsz/AAB3QpA8dFY-OyLdzonKzoLha). It has Windows 7, putty, Netbeans 8 with the ME SDK already configured.

* Extract the downloaded image to your computer.

* If using VirtualBox:

- create a new image for Win 7 64 bit with 2GB of RAM.

Dont create a new virtual hard disk, or point to an existing disk

- Once created go into the settings for that image

- Go to Storage Select the IDE Controller and Add a Hard Drive

- Find the file called MelbJVM Java 8 ME RPi Win7x64.vmdk

in the extracted dir and select that

-- NB: (ignore vmdk-s001..020, just find the one with no number suffix)

- Ensure that disk is setup as the IDE primary master

- Ok the dialogs Boot the virtual machine. The username and password are both:

MelbJVM

Raspberry Pi

If you've already got a Raspberry PI with Raspbian then skip to step 3

1. Need to be running the Rasbian distro (Debian Wheezy hard float support). Instructions to create an SD card image with Rasbian if you don't have it already are here (http://docs.oracle.com/javame/8.0/get-started-rpi/introduction.htm#sthref10)

2. Install Oracle Java ME Embedded 8 for Raspberry Pi Model B (ARM11/Linux).

Download Link

Instructions

Pre Built Pi Image

If you have a spare SD card, you can take our pre-built SD card image. It already has the ME 8 client installed and configured to run automatically at boot-time. It also has sshd and dhcp enabled.

Download HOL.img (https://www.dropbox.com/l/fVm2jK4PUs7AG8zdMJHf0t?) OR raspberrian.img.zip (https://www.dropbox.com/sh/bgv39cong054zsz/AAB3QpA8dFY-OyLdzonKzoLha) and extract to a location on your computer

Use one of the tools listed here (http://elinux.org/RPi_Easy_SD_Card_Setup) to apply the img file to your SD card

IMPORTANT: make sure you select the correct device when applying the image. You dont want to overwrite your hard drive by mistake. Boot with the SD card in your Pi

Short on time?

Images are the best way to go. If you can download the software before the meetup, along with install VMWare or VirtualBox prior to the meetup you'll be in a good place

Assistance

Come early if you need a hand to setup your PC (say about 6pm)

Dont have a laptop or pi?

Thats more than ok, we are sharing hardware. The workshop is designed for groups.

Thanks

Angela Caceido from Oracle

Tim Findlay, Gordon Oliver, Davide Baj, Rashmi Nayak, Andrew Hamilton - Building and testing the VM Win 7 & RasPi images plus helping organise tonight.

Giveaways

Nothing to do with the above, but we've got some surprise giveaways from our sponsors. Who are they? What are they? You'll just have to wait to find out. :-)