I try this simple program (to check SDL):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| import sdljava.*; import sdljava.video.*;
class HelloSDL { public static void main(String[] args) { final String caption = "Hello, SDL!"; System.out.println(caption);
try { SDLMain.init(SDLMain.SDL_INIT_VIDEO); SDLVideo.wmSetCaption(caption, caption); SDLSurface screen = SDLVideo.setVideoMode(640, 480, 24, 0); java.lang.Thread.sleep(2500);
} catch (Exception e) { e.printStackTrace(); } finally { SDLMain.quit(); } } } |
When I run it it says:
Hello, SDL!
Native code library failed to load.
java.lang.UnsatisfiedLinkError: C:\JavaSDL\lib\SDLJava.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
I load SDl.dll (64bit), but I can't find SDLJava.dll 64bits.