fixing #3027 (searching JNI even if no ant), fixing java tests status message (ON/OFF)
Merge pull request #928 from apavlenko:bugfix_3027