Wish jAutoitX - Can't get object clsid from progid.

T201016

Active Member
Licensed User
Longtime User
Hi,
I just wanted to test this example with "jAutoitX_example",
I registered autoitx.dll without a problem, but there is an error in the initialization of the Jautoitx bibioteka.

I used libraries for the test of both versions x86/.x64.
jacob-1.21.zip or jacob-1.18.zip ( )

- Copy to the external library:
AutoItX4Java.jar (with jAutoItX_Libraries.zip)
jAutoItX.jar (with jAutoItX_Libraries.zip)
jAutoItX.xml (with jAutoItX_Libraries.zip)
jacob.jar (with jacob-1.21.zip / jacob-1.18.zip)

- Copy to your project /objects /Lib:
jacob.dll (with jAutoItX_Libraries.zip) lub z jacob-1.21.zip / jacob-1.18.zip
AutoitX.dll (with AutoItX3_x64.zip)

Result during compilation:

main._appstart (java line: 69)
com.jacob.com.ComFailException: Can't get object clsid from progid
at com.jacob.com.Dispatch.createInstanceNative(Native Method)
at com.jacob.com.Dispatch.<init>(Dispatch.java:99)
at com.jacob.activeX.ActiveXComponent.<init>(ActiveXComponent.java:58)
at anywheresoftware.jmon.jautoitx.jAutoItX.Initialize(jAutoItX.java:70)
at b4j.example.main._appstart(main.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:111)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:98)
at b4j.example.main.start(main.java:37)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$4(WinApplication.java:185)
at java.lang.Thread.run(Thread.java:750)
Thank you for all the answers.
 

Attachments

  • jAutoItX_Example.zip
    408.2 KB · Views: 23
  • AutoItX3_x64.zip
    158.8 KB · Views: 23
  • jAutoItX_Libraries.zip
    256.4 KB · Views: 26
Top