Combine log output into one line
Move JNI down to just before it is used