1.對應得jacob-1.18.dll放到jdk/jre/bin路徑下(jdk項目)
2.對應得jacob-1.18.dll放到tomcat/bin下(tomcat項目)
3.放到windows/system32下(不必須),註冊
4.運行 dcomcnfg ,找到Baan.Application.47相關名稱 屬性-標識 改爲交互式
5.tomcat服務 - 屬性 - 登錄 - 以下賬戶登錄 改爲管理員登錄
4.相關代碼
public class Test {
public static void main(String[] args) {
ActiveXComponent bw = new ActiveXComponent("Baan.Application.47");
Variant call = Dispatch.call(bw,"ParseExecFunction","owhinrdll90001",
"approve.sfc.wh.order.line(\"NJR045866\",\"1\",\"2\",\"1\")");
Variant property = bw.getProperty("ReturnValue");
System.out.println("property"+property);
}
}