fix of jni use for petshop