Raspberry Pi & Java
In October 2013 it was announced that Oracle Java will be included on the latest Raspberry Pi distribution. Existing users can install it by typing:
sudo apt-get update && sudo apt-get install oracle-java7-jdk
On 14th August 2012 Oracle announced the availability of JDK 7 Update 6 with a new JDK port to Linux ARM.
We also found that it was easier to import code using a USB pendrive as it was instantly recognised and mounted. At this point in time, we are also using a USB pendrive to backup our code. We are trying to structure folders and files, so that we can easily upgrade the operating system if need be later.
Compiling code is simply a matter of invoking the Java. The command line can be quite long when you have many Java files so a shell script will speed things up. This allows you to then have a 'make' file/command and a 'run' file/command.
Over the years we have created our own library of tools and utility classes and porting of these over to Linux (we mianly develop under Windows 7) was an easy task.
There is a Java topic on the Raspberry Pi community forums: Raspberry Pi > Programming > Java.
- Savage Home Automation - Oracle Java SE 7 (JDK/JVM) Now Pre-Installed on Raspbian (1st October 2013)