Re: org.jawin.COMException: 8002802b: Element not found.
Morten Andersen <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
Hi Roy Sorry for being so slow in answering - I had a couple of days of during the Easter. Roy Collins wrote: > common problems that might result in this error? From the Element not > found > it seems as though it can not find the library file, the .dll. I have made > sure that the file is on the class path and I even copied it into the same > directory. Of course it should be referencing the COM entry in the > registry, right? Exactly. So I don't think there should be any issues regarding the exact placement of the dll-files. > Is there a way I can verify that the library is found if > that is what the problem seems to be. I tried calling many differnt > methods > to be sure that there wasnt an error with just one method but all resulted > in the same exception. Ok. Are there any "simple" methods in the library? E.g. like "String getVersion()"? then I think we should start debugging with those. Since all your methods fails, I wonder whether you are remembering to call the Ole32.CoInitialize() and Ole32.CoUninitialize() methods as documented here http://jawinproject.sourceforge.net/jawin.html#callingStubs Also, are you constructing the object with either the progid or the clsid constructor? You MUST NOT use the public no-arg constructor. Is the library you are trying to work with part of the default windows installation, or in other way accessible for me, so I can test it? Or is it a proprietary product? Finally can you post a snippet of your calling code, and the stacktrace of the exception (Exception.printStackTrace() should give you the stacktrace on stderr). Best Regards Morten