[sdljava-users] Re: Problem with sdljava
Status: Beta
Brought to you by:
ivan_ganza
From: j-fortin <j-f...@wa...> - 2005-02-26 22:17:11
|
Thanks a lot for your answer, in fact i still have the problem with the command java -Djava.library.path=/home/jean/javasdlsrc/sdljava-0.9.1/lib -cp /home/jean/javasdlsrc/sdljava-0.9.1/lib/sdljava.jar:dist/test1.jar test1.Main (now i use a version that i compiled from the sources) I can run the sdljava.testsuite.testsprite with the same command and i don't have any error, so i don't understand where the problem is... I still have the error Exception in thread "main" java.lang.UnsatisfiedLinkError: SDL_DisplayFormat at sdljava.x.swig.SWIG_SDLVideoJNI.SDL_DisplayFormat(Native Method) at sdljava.x.swig.SWIG_SDLVideo.SDL_DisplayFormat(SWIG_SDLVideo.java:125) at sdljava.video.SDLSurface.displayFormat(SDLSurface.java:710) In my class the line spriteSurface = SDLImage.load(imagePath); works well. while the line spriteSurface = spriteSurface.displayFormat(); raises the error. (there are the same lines in the testsprite program) Jean Fortin Ivan Z. Ganza wrote: > I'm not sure why you are getting this. The test program sdljava.testsuite.testsprite makes a call to displayFormat() without any problems. Maybe try giving your full path, i.e., don't use the ~/ notation. I'm not sure that this would works when passing to the VM. > > -Ivan/ |