// Test to make sure JNI implementation catches exceptions.publicclassnoclass{static{System.loadLibrary("noclass");}publicstaticnativevoidfind_it();publicstaticvoidmain(String[]args){
try{find_it();}catch(Throwable_){// If find_it() causes a crash, or doesn't throw an exception,// we won't be running this next line.System.out.println("Ok");}