FF Version - 43.0.2
iMacros Version - 11
OS - Win 7
I followed the steps mentioned in the below URL, and I'm able to launch the imacros browser without any issues.
http://forum.imacros.net/viewtopic.php?f=6&t=10899
below is my code
Code: Select all
package Execution;
import com.jacob.activeX.*;
public class exec {
public static void main(String[] args) {
// TODO Auto-generated method stub
ActiveXComponent iim = new ActiveXComponent("imacros");
System.out.println("Calling iimInit");
iim.invoke("iimInit"); // call iimInit()
System.out.println("Calling iimPlay");
iim.invoke("iimPlay", "CODE:URL GOTO=http://www.google.com"); // call iimPlay()
}
}
Code: Select all
ActiveXComponent iim = new ActiveXComponent("firefox");
Code: Select all
Exception in thread "main" 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 Execution.exec.main(exec.java:8)
Thanks,
Jagadeesh.K