com4j icon indicating copy to clipboard operation
com4j copied to clipboard

COM4j not compatible with windows 64 bit machine

Open shanthia opened this issue 10 years ago • 9 comments

I'm getting class not registered for com4j when i'm trying to access ALM from java using OTA connector. Its working fine with 32 bit machine. I've downloaded com4j from the below link which has dll for 64 bit machine. 1)http://kohsuke.org/2012/04/27/com4j-updates/ 2) https://github.com/kohsuke/com4j/downloads. still i'm getting the same error. Is com4j compatible with windows 64 bit?

shanthia avatar Oct 16 '15 11:10 shanthia

Can anyone help me?

shanthia avatar Oct 20 '15 06:10 shanthia

Hi, are you trying to use 64 bit java to connect to 32 bit native dll ? First I would play with bitness(32/64) of java and your native dll(com object), second would try to debug the whole stack java->com4j->you native dll to understand on what step is failing and google your error then

kllbzz avatar Oct 22 '15 05:10 kllbzz

I've the same problem Exception in thread "main" com4j.ExecutionException: com4j.ComException: 80040154 CoCreateInstance failed : Clase no registrada : .\com4j.cpp:153 I can't run it in win64, for burocracy requirements I can't avoid java and windows64

luisbarros27 avatar Apr 15 '16 14:04 luisbarros27

I am also getting same error. I am using com4j to integrate with ALM

AnandChaurasia-zz avatar Nov 24 '16 14:11 AnandChaurasia-zz

btw, did you see comment from kohsuke here https://java.net/jira/browse/COM4J-77?focusedCommentId=338656&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-338656

kllbzz avatar Nov 26 '16 08:11 kllbzz

Was this ever resolved?

jacobbeasley avatar Apr 11 '18 14:04 jacobbeasley

No, in my case, I had to change everything in my app, it was made in delphi, and call it via activex, a disgusting crap solution.

On Wed, Apr 11, 2018 at 11:44 AM, Jacob Beasley [email protected] wrote:

Was this ever resolved?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kohsuke/com4j/issues/50#issuecomment-380478480, or mute the thread https://github.com/notifications/unsubscribe-auth/ARa3SwsNXIIAG8lE13EjDyGCzOi_Udi-ks5tnhbngaJpZM4GQKf1 .

luisbarros27 avatar Apr 11 '18 14:04 luisbarros27

Yeah, in my case I just used the 32-bit JVM and it seems to work now.

jacobbeasley avatar Apr 11 '18 17:04 jacobbeasley

It works sometimes...

If I register my dll with regsvr32 and pray to the gods, it works on some systems but not on others. We will be moving away from this because of inconsistencies and lack of support.

On Wed, Apr 11, 2018, 10:43 AM Jacob Beasley [email protected] wrote:

Yeah, in my case I just used the 32-bit JVM and it seems to work now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kohsuke/com4j/issues/50#issuecomment-380537143, or mute the thread https://github.com/notifications/unsubscribe-auth/ARX7jjgeG34JHvM6sQuguc1pcx1F8_PPks5tnkDJgaJpZM4GQKf1 .

CallSign-Filter avatar Apr 11 '18 19:04 CallSign-Filter