2. Download the RPi Hard-Float Debian Wheezy image from here:



http://downloads.raspberrypi.org/images/raspbian/2012-12-16-wheezy-raspbian/2012-12-16-wheezy-raspbian.zip

3. Insert a blank SD Card (NOTE: Only use a SD Card from this list) into your Windows or Mac/Linux PC.

4. Use Win32DiskImager on a Windows PC (or on Mac/Linux use "sudo dd if=<path_to_raspian.img> of=/dev/[diskNN|sdd] bs=[1m|4m]" or similar command see: dd ref) to burn the unzipped image from #2 to the SD Card.



(NOTE: After burning the SD Card, it will say the size is ~55MB (or something small like that). That's supposed to be that way and is OK, since the SD Card was imaged to have a swap area on it)

5. Insert the SD Card into your RPi. Connect an Ethernet cable from your RPi Ethernet port to your network. Connect the RPi Power Adapter. (NOTE: Make sure to use your RPi Power Adapter and do not use the USB port of a computer, since only the RPi Power Adapter will have enough current to drive your RPi and the SD Card)

6. The RPi will boot onto your network. Find its IP address by referring to your network DHCP settings or by using Windows Wireshark or the Mac/Linux tcpdump command:



sudo tcpdump -vv -i[en0|en1|eth0|eth1] port 67 and port 68

7. Download JDK 8 for ARM Early Access (with Hard-Float support):



http://jdk8.java.net/download.html



NOTE: First click the "Accept License Agreement" button, then choose:



Linux ARMv6/7 VFP, HardFP ABI "tar.gz" under the "JDK" column



8. scp the bundle from step #7 to your RPi:



scp <jdk8-zip-bundle> pi@<ip_addr_rpi>:/home/pi



<Password: "raspberry">

9. ssh to your RPi:



ssh <ip_addr_rpi> -l pi



<Password: "raspberry">

10. Untar the bundle from step #8 and rename (move) the toplevel directory to /usr/local/java







cd /home/pi



tar zxvf jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz



sudo mv jdk1.8.0 /usr/local/java



export PATH=$PATH:/usr/local/java/bin



java -version



...



11. Compile on your device!







cd /home/pi



cat > HelloWorld.java



public class HelloWorld {



public static void main(String args[]) {



java.lang.System.out.println("Hello World!");



}



}



^D



javac HelloWorld.java



java -cp . HelloWorld

