fixing #3027

searching JNI even if no ant,
fixing java tests status message (ON/OFF)