Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't co-create object

Tags:

jacob

i made a dll in .net and call that from java program using jacob.since yesterday i have windows 7 32 bit os so program run successfully.now i formated and install windows 7 64 bit os.so following error encounter:

com.jacob.com.ComFailException: Can't co-create object
    at com.jacob.com.Dispatch.createInstance(Native Method)
    at com.jacob.com.Dispatch.<init>(Dispatch.java)
    at com.jacob.activeX.ActiveXComponent.<init>(ActiveXComponent.java)
    at product.Control_product.main(Control_product.java:21)

Register all the dll files but the error is occured.

like image 252
tm1 Avatar asked Apr 22 '26 19:04

tm1


1 Answers

Use a 32bit JVM to execute your code.

The DLL of the COM object you are trying to use needs to be registered. The jacob dll's do not provided they are available in the library path.

like image 140
sweetfa Avatar answered May 02 '26 17:05

sweetfa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!