Pin version, compile with JDK 1.6, set LD_LIBARY_PATH.