Implement JNI clear console