Quickie Guide Getting Java Embedded Running on Raspberry Pi

Posted by hinkmond on Oracle Blogs See other posts from Oracle Blogs or by hinkmond
Published on Fri, 19 Oct 2012 00:57:59 +0000 Indexed on 2012/10/19 5:12 UTC
Read the original article Hit count: 561

Filed under:
Gary C. and I did a Bay Area Java User Group presentation of how to get Java Embedded running on a RPi. See: here. But, if you want the Quickie Guide on how to get Java up and running on the RPi, then follow these steps (which I'm doing right now as we speak, since I got my RPi in the mail on Monday. Woo-hoo!!!).

So, follow along at home as I do the same steps here on my board...

1. Download the Win32DiskImager if you are on Windows, or use dd on a Linux PC:
https://launchpad.net/win32-image-writer/0.6/0.6/+download/win32diskimager-binary.zip

2. Download the RPi Debian Wheezy image from here:
http://files.velocix.com/c1410/images/debian/7/2012-08-08-wheezy-armel/2012-08-08-wheezy-armel.zip

3. Insert a blank 4GB SD Card into your Windows or Linux PC.

4. Use either Win32DiskImager or Linux dd to burn the unzipped image from #2 to the SD Card.

5. Insert the SD Card into your RPi. Connect an Ethernet cable to your RPi to your network. Connect the RPi Power Adapter.

6. The RPi will boot onto your network. Find its IP address using Windows Wireshark or Linux:
sudo tcpdump -vv -ieth0 port 67 and port 68

7. ssh to your RPi:
ssh <ip_addr_rpi> -l pi
<Password: "raspberry">

8. Download Java SE Embedded:
http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html
NOTE: First click accept, then choose the first bundle in the list:
ARMv6/7 Linux - Headless EABI, VFP, SoftFP ABI, Little Endian -
ejre-7u6-fcs-b24-linux-arm-vfp-client_headless-10_aug_2012.tar.gz

9. scp the bundle from #8 to your RPi:
scp <ejre-bundle> pi@<ip_addr_rpi>

10. mkdir /usr/local, untar the bundle from #9 and rename (move) the ejre1.7.0_06 directory to /usr/local/java

That's it! You are ready to roll with Java Embedded on your RPi.

© Oracle Blogs or respective owner

Related posts about /Java Embedded