Re: NoClassDefFoundError
Roy Collins <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <001e01c52f67$3011b150$6702a8c0@royworld> |
Yeah still no luck. Just a concern though. Even if I copy the jawin.dll and jawin.jar to the application directory I still get the error. If I copy both into the directory that I am running the java class from shouldn't classpath not matter at that point. I think this might be a bigger problem. I did try setting the classpath and the Dlibrary. I even tried a few alterations for classpath. I even copied both files to the root c:\ and used that as the classpath. Still I get the same error. What IDE are you using? I am using Microsoft Development Environment with J# .Net installed since I got it for free. I know they dont support java so much anymore except their java #. You said you were able to set the class path in your IDE so I thought that might be worth a try. Do you know how to do it on this IDE. Otherwise I guess I could throw Eclipse on my machine if that is what you are using. I am willing to try anything to get this to work. Thanks again for the help. ----- Original Message ----- From: "Christophe Bouhier (MC/ECM)" <[email protected]> To: <[email protected]> Sent: Tuesday, March 22, 2005 10:38 PM Subject: Re: [JAWIN] NoClassDefFoundError > try setting jawin.dll as a property with: java -Dlibrary=[path to your > jawin.dll] > just set the environment CLASSPATH=c:\jawin-1.0.19;........(Not bin as > your jawin.jar is no there right?) > Cheers / Christophe > >> -----Original Message----- >> From: Discussion of Java/Win32/COM integration with Jawin >> [mailto:[email protected]] >> Sent: Wednesday, March 23, 2005 12:21 PM >> To: [email protected] >> Subject: Re: [JAWIN] NoClassDefFoundError >> >> >> 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 >> >> >>