Fix Java Runtime Error.