[sdljava-users] SDLjava Error in sdljava.x.swig.SWIG_SDLVideoJNI.SDL_SEtVideoMode
Status: Beta
Brought to you by:
ivan_ganza
From: Toni P. <teh...@go...> - 2008-11-23 09:57:39
|
I'm trying to run my project with the following code: public class HelloSDL { static { System.loadLibrary("SDL"); System.loadLibrary("SDLJava"); } public static void main( String[] args ) { try { SDLSurface screen = SDLVideo.setVideoMode(640,480,0,1); } catch (SDLException e) { e.printStackTrace(); } } } First, he couldn't load the library and dependent libraries, but it works now ... But If I run the code, an error occurs: Exception in thread "main" java.lang.UnsatisfiedLinkError: sdljava.x.swig.SWIG_SDLVideoJNI.SDL_SetVideoMode(IIIJ)J at sdljava.x.swig.SWIG_SDLVideoJNI.SDL_SetVideoMode(Native Method) at sdljava.x.swig.SWIG_SDLVideo.SDL_SetVideoMode(SWIG_SDLVideo.java:38) at sdljava.video.SDLVideo.setVideoMode(SDLVideo.java:332) at HelloSDL.main(HelloSDL.java:14) Why is this? Thanks for any help. |