add setjarbyclass to fix a runtime exception