Java on OpenPandora

private:/$ sudo opkg install openjdk-6-jdk
Installing openjdk-6-jdk (6b18-1.8-r10.7.6) to root...
Downloading http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/openjdk-6-jdk_6b18-1.8-r10.7.6_armv7a.ipk.
Installing openjdk-6-jre (6b18-1.8-r10.7.6) to root...
Downloading http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/openjdk-6-jre_6b18-1.8-r10.7.6_armv7a.ipk.
Configuring openjdk-6-jre.
update-alternatives: Linking //usr/bin/java to /usr/lib/jvm/java-6-openjdk/jre/bin/java
Configuring openjdk-6-jdk.
update-alternatives: Linking //usr/bin/javac to /usr/lib/jvm/java-6-openjdk/bin/javac

Installing the Java SDK (JDK) also installed the Java runtime environment (JRE).

Since Linux on ARM is not a platform officially supported by Oracle (Solaris, Windows, Linux on x86 and x64) this installs OpenJDK, an open-source implementation.

private:/$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.2) (6b18-1.8)
OpenJDK Zero VM (build 14.0-b16, mixed mode)

Apparently I ended up with Java 1.6. Wikipedia informs me that the current version is 1.7, so I am not too outdated here.

Testing the Java environment with a Hello World program gives this positive result:

Screen Shot 2012-08-01 at 21.38.10
private:~$ javac HelloWorld.java
private:~$ ls HelloWorld.class
HelloWorld.class
private:~$ java HelloWorld
Hello, world.

That appears to work.

So I am done here.


Links

Oracle Java: http://java.com/en/download/manual.jsp

OpenJDK: http://openjdk.java.net/


 © Andrew Brehm 2016