【发布时间】:2014-05-30 09:24:10
【问题描述】:
我在运行下面的代码时遇到异常Exception in thread "main" com.jacob.com.ComFailException: Can't co-create object。
我在网上查询了帮助。有些网站说我需要注册我的 dll。我尝试使用regsvr32.exe 进行注册。但我无法成功注册。弹出下方。
模块“jacob-1.18-M2-x64.dll”已加载,但未找到入口点 DllRegisterServer。请确保“jacob-1.18-M2-x64.dll”是有效的 DLL 或 OCX 文件,并且然后再试一次。
【问题讨论】:
-
字符串路径 = System.getProperty("java.library.path"); System.out.println(路径); System.loadLibrary("jacob-1.18-M2-x64"); // 连接到 iMacros 脚本接口 System.out.println("Started."); ActiveXComponent iim = new ActiveXComponent("imacros");
-
您能否发布您正在运行的代码的相关sn-p?