since migrating to Lync 2013, my code fails at
ActiveXComponent officeCommunicatorActiveX = new ActiveXComponent("Communicator.UIAutomation");
with the exception:
Exception in thread "Thread-10" com.jacob.com.ComFailException: Can't co-create object
at com.jacob.com.Dispatch.createInstanceNative(Native Method)
at com.jacob.com.Dispatch.<init>(Dispatch.java:101)
I tried some online solutions, but none worked. Lync is running in 32 bit mode, and I ran my app with bot 32 & 64 bit JDKs - didn't matter. Am i using JACOB wrong ?
EDIT: before running this code, I choose my JACOB dll with:
if (shouldLoad32Bit()) {
System.setProperty(LibraryLoader.JACOB_DLL_PATH, Files.JACOB_32.getAbsolutePath());
} else {
System.setProperty(LibraryLoader.JACOB_DLL_PATH, Files.JACOB_64.getAbsolutePath());
}
Support for this API is discontinued in Lync 2013.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.