Skip to main content

Com4j - Error during generating Stub Classes

No replies
GSREDDY302
Offline
Joined: 2012-07-23
Points: 0

Hi,

I downloaded new version of Com4J and trying to generate Stub classes. I am getting the following UnSatisfiedLinkError. Does any one experienced similar problem? Help in this regard is greatly appreciated.

Exception in thread "main" java.lang.UnsatisfiedLinkError: com4j.Win32Lock.activate0(J)V
at com4j.Win32Lock.activate0(Native Method)
at com4j.Win32Lock.activate(Win32Lock.java:28)
at com4j.ComThread.execute(ComThread.java:191)
at com4j.Task.execute(Task.java:25)
at com4j.COM4J.loadTypeLibrary(COM4J.java:322)
at com4j.tlbimp.driver.Lib.getLibid(Lib.java:90)
at com4j.tlbimp.driver.Driver.addLib(Driver.java:38)
at com4j.tlbimp.driver.Main.doMain(Main.java:123)
at com4j.tlbimp.driver.Main.main(Main.java:56)
Exception in thread "Com4J shutdown hook" java.lang.UnsatisfiedLinkError: com4j.Win32Lock.activate0(J)V
at com4j.Win32Lock.activate0(Native Method)
at com4j.Win32Lock.activate(Win32Lock.java:28)
at com4j.ComThread.kill(ComThread.java:119)
at com4j.ComThread$2.run(ComThread.java:284)
at com4j.COM4J$3.run(COM4J.java:481)