Re: NoClassDefFoundError
Roy Collins <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <000b01c52f5f$ad49ca20$6702a8c0@royworld> |
Thanks for the response. That is the problem I am having for sure. The difficulty is I can not seem to get java to recognize the file. I have my jawin files in c:\jawin-1.0.19. I set my classpath to c:\\jawin-1.0.19\\bin. I tried with 2 backslashes and with one. I even copied the file into the application directory itself, whcih it should be able to find without setting the path correct? Should I only need the jawin.dll file or are there more files that I need? I am sure it is something very simple but I can not seem to get it to load the .dll file. Do I need to do anything else special at compile time? It seems like this should be simple but I have been trying and researching for 2 days now and I cant seem to get it to go. Any other suggestions you have would be greatly appreciated. Thanks again. ----- Original Message ----- From: "Christophe Bouhier (MC/ECM)" <[email protected]> To: <[email protected]> Sent: Tuesday, March 22, 2005 7:45 PM Subject: Re: [JAWIN] NoClassDefFoundError > This is CLASSPATH issue. > Simply edit you CLASSPATH to contain the jawin directory. > You should be ready to go. > > What I do is run from an IDE, which build the class paths for me. > the only thing you need to do is select the jawin directory. > > Cheers / christophe > >> -----Original Message----- >> From: Discussion of Java/Win32/COM integration with Jawin >> [mailto:[email protected]] >> Sent: Wednesday, March 23, 2005 6:21 AM >> To: [email protected] >> Subject: [JAWIN] NoClassDefFoundError >> >> >> I am tyring to get a Java application to interact with a .DLL >> using Jawin >> 1.0.19. I have created the Stub java files and everything complies >> correctly. However when I run the java program I get the >> following error >> >> java.lang.NoClassDefFoundError: org/jawin/DispatchPtr >> >> I have set the class path to the correct directory that contains the >> jawin.dll file. I even copied the jawin.dll file and the >> jawin.jar file >> into the directory with the application and also to the >> windows\system32. >> The app still can not seem to find the file. Is there >> anything else that I >> should try. I am using java SDK 1.5.0_02. I am sure there >> is something >> simple that I am missing but if anyone could point it out >> that would be great. >> >> Thanks >> >> Roy >>