示例

public class BeanClass implements javax.ejb.EntityBean {
public void load(){
//..
System.load("path to native library");
}
//other methods that must implement the interface
}

解决方案
不要装入本地库。