com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80040154; Class not r

722 views
Skip to first unread message

Hitesh saxena

unread,
Jun 7, 2013, 8:28:47 AM6/7/13
to jniwrapp...@teamdev.com
Dear Team,

When i am launching my application which register OCX also during start up.

While in Windows7 it is not launching it and throwing the below error.

Exception in thread "SpeechSessionCreationThread" com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80040154; Class not registered
    at com.jniwrapper.win32.com.ComException.checkResult(SourceFile:72)
    at com.jniwrapper.win32.com.ComFunctions.coCreateInstance(SourceFile:149)
    at com.jniwrapper.win32.com.impl.IUnknownImpl.<init>(SourceFile:81)
    at com.jniwrapper.win32.automation.impl.IDispatchImpl.<init>(SourceFile:53)

Please help me to get oit of this issue.

Many Thanks,
Hitesh

Hitesh saxena

unread,
Jun 7, 2013, 8:33:08 AM6/7/13
to jniwrapp...@teamdev.com
Also the issue is happening only for non admin users and we need to provide our app to non admin users of Windows 7 64 bit OS, where the issue is happening.



--
You received this message because you are subscribed to the Google Groups "JNIWrapper Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jniwrapper-for...@teamdev.com.
To post to this group, send email to jniwrapp...@teamdev.com.
Visit this group at http://groups.google.com/a/teamdev.com/group/jniwrapper-forum/?hl=en.
For more options, visit https://groups.google.com/a/teamdev.com/groups/opt_out.
 
 

Sergei Piletsky

unread,
Jun 10, 2013, 10:31:39 AM6/10/13
to Hitesh saxena, jniwrapp...@teamdev.com
Such COM error message indicates that an OCX component that you are trying to create is not registered in a system, or COM cannot create it in the context of your application. 

This is possible, for example, when your Java application is launched with a 64-bit JVM, and a required OCX component is a 32-bit COM library. If so, the simple solution is to start your application with a 32-bit JVM.

By the way, this is JNIWrapper support forum, and actually it's nothing to do with COM.

-Serge



--

Hitesh saxena

unread,
Jun 11, 2013, 7:42:17 AM6/11/13
to Sergei Piletsky, jniwrapp...@teamdev.com
i tried running application using 32 bit JVM but still the same error.


Reply all
Reply to author
Forward
0 new messages