Skip to main content

Zulu®: Multi-platform Certified OpenJDK™

Quite a few websites and blogs were discussing the Oracle public end of life announcement for Java 7, which seems too soon to me, but it has been out for a long time. At work we use a mix of Java 6 and 7 but force everything to compile at Java 6 level because clients are reluctant to upgrade JDKs.

Oracle Java SE Support Roadmap

So moving to the interesting Java 8, which if possible for your environment, offers many new features, it is possibly the largest update to the JDK/JVM since Java 5?

If stuck on Java 6 or 7, then maybe look into the OpenJDK options:

Zulu®: Multi-platform Certified OpenJDK™
http://www.azulsystems.com/products/zulu

Popular posts from this blog

Overcome Java JNI gdb errors on GNU/Linux

If you happen to try to debug any Java JNI programs using gdb on GNU/Linux you will soon come across error messages. For example : $ gdb --args java MyJavaProgramUsingJNI cannot find user-level thread for LWP nnn: generic error warning: Cannot initialize thread debugging library: versions of libpthread and libthread_db do not match The reason for this is that the java program mucks around with LD_LIBRARY_PATH and that prevents gdb from running correctly. To overcome this, you have to run your Java program and place a pause in the Java code, such as reading a key, and then in another shell, run gdb to attach to the running Java process. You can then set your breakpoint on your JNI code and debug it. Here is an example : Compile your Java program: $ javac JNITest.java Generate the JNI header file: $ javah -jni JNITest.java Create and compile your C code library: $ cat jnilib.c #include "JNITest.h" JNIEXPORT jint JNICALL Java_JNITest_addValues( JNIEnv...