Oracle Java Armhf
Posted by sky | Tags: Android, Java, Linux, Open-Source, Personal, armhf, testing
Oracle has released a armhf-based developer Preview of JDK 8 with JavaFX.
Although this release does not support Java API that requires X11, such as AWT and Swing, we can use the Client Hotspot (jre/lib/arm/client/libjvm.so) from the JavaFX 8 preview in combination with the compiled OpenJDK 7 Runtime environment classes to run Swing/AWT programs. ( see Raspberry PI discussion thread )
Copy the client hotspot dir containing the libjvm.so into the OpenJDK 7 jre/lib/arm folder (copy to oracle).and configure the OpenJDK Runtime to use the Oracle client Hotspot JVM dir by adding the line -oracle KNOWN as the first option in the /etc/java-7-openjdk/jvm-armhf.cfg
1 # apt-get install openjdk-7-jre
2 # tar --extract --verbose --file=jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz jdk1.8.0/jre/lib/arm/client
3 # cp -r jdk1.8.0/jre/lib/arm/client /usr/lib/jvm/java-7-openjdk-armhf/jre/lib/arm/oracle
4
/etc/java-7-openjdk/jvm-armhf.cfg
1 #
2 -oracle KNOWN
3 -server KNOWN
4
Java code runs much faster with the Oracle JVM.
Previous Post Next Post