It looks like a problem loading the native libraries. Without more details
its hard to say. If it loaded the library but THEN got the error it may be
that the library your sdljava was complied and linked against is different
from what your loading there.
-Ivan/
On Sun, Nov 23, 2008 at 4:57 AM, Toni Peter <teh...@go...>wrote:
> 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.
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> sdljava-users mailing list
> sdl...@li...
> https://lists.sourceforge.net/lists/listinfo/sdljava-users
>
>
--
-Ivan/
|