tags:

views:

369

answers:

0

I am having an exception like this:

Exception in thread "main" com.jacob.com.ComFailException: Can't QI object for IDispatch
    at com.jacob.com.Dispatch.createInstanceNative(Native Method)
    at com.jacob.com.Dispatch.<init>(Dispatch.java:101)
    at com.jacob.activeX.ActiveXComponent.<init>(ActiveXComponent.java:58)
    at test.Test.main(Test.java:11)

My code is very simple, I'm trying online to create an instance of the object:

package test;

import com.jacob.activeX.ActiveXComponent;

public class Test {

/**
 * @param args
 */
public static void main(String[] args) {
 ActiveXComponent ax = new  ActiveXComponent("TETComp.TetClient");

}

}

The DLL is already registered and in the OLE Viewer shows the following:

ProgID = TETComp.TetClient.1
VersionIndependentProgID = TETComp.TetClient