RE: [sdljava-users] Problems with JavaSDL.. I've been trying for hours to get this to work.
Status: Beta
Brought to you by:
ivan_ganza
From: LEBOEUF B. <bar...@ya...> - 2005-02-14 00:49:55
|
Hi Chris, For executing SDLJava Applications inside Eclipse you'll need = sdljava.dll and SDL.dll inside your java.library.path (d:/Java Code/sdljava/lib). Next go in menu "Run" -> "Run...", select your application and clic on "Arguments" tab. Put in "VM Arguments :" part the following text "-Djava.library.path=3Dd:\Java Code\sdljava\lib" and at last just below, = set your root "working directory" to the lib path. See the screen captures attach to this mail to have an idea. CUS, /Bart -----Message d'origine----- De=A0: sdl...@li... [mailto:sdl...@li...] De la part de Chris Dennett Envoy=E9=A0: lundi 14 f=E9vrier 2005 00:10 =C0=A0: sdl...@li... Objet=A0: [sdljava-users] Problems with JavaSDL.. I've been trying for = hours to get this to work. Hi, I've no idea whatsoever about how to use JavaSDL at all. I=20 downloaded the win32 compiled version, and I've followed the=20 instructions in INSTALL, and yet it still isn't working. My default VM arguments are=20 '-Djava.library.path=3DD:/Programming/eclipse/plugins/org.eclipse.swt.win= 32_3. 1.0/os/win32/x86=20 -Djava.library.path=3D"d:/Java Code/sdljava/lib"', and I've added=20 'sdljava.jar' to the Libraries section classpath of the Java Build Path=20 section of the current project. My testing code, at the moment, is: public static void main(String[] args) { System.loadLibrary("sdljava"); try { SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); } catch (SDLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } and it is giving me: Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\Java=20 Code\sdljava\ lib\sdljava.dll: Can't find dependent libraries at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at LoachApp.main(LoachApp.java:10) However.. if I then remove 'System.loadLibrary("sdljava");', I get the=20 following message: Exception in thread "main" java.lang.UnsatisfiedLinkError: = get_SDL_PRESSED at sdljava.x.swig.SWIG_SDLMainJNI.get_SDL_PRESSED(Native Method) at=20 sdljava.x.swig.SWIG_SDLMainConstants.<clinit>(SWIG_SDLMainConstants.java:= 12) at sdljava.SDLMain.<clinit>(SDLMain.java:37) at LoachApp.main(LoachApp.java:11) If anyone has got this working in Eclipse IDE, could someone guide me=20 along? Thanks :D I've attached some screenshots if it helps. --=20 |>>> Dessimat0r /`\ | "We cannot turn back time, but we can _ _|_ _ move it forwards with our own hands." |;|_|;|_|;| \\. . / [www: http://codeknight.net ] \\: . / [e-mail: des...@nt... ] ||: U | /`\ [icq: 21477909 ] ||:. | [msn: des...@nt... ] \,/ ||: U.| ||: | \,/ ||: , | ____--`~--- '--~~__ __ ----~ - ~`---, -~--~ ~---__ ,--~' ~~----___ |