Re: [sdljava-users] problem with the installation of SDLJava.
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-09-30 01:41:37
|
Greetings Mathieu, It should be fairly easy to run an sdljava programs from within Eclipse. The easier way is to put all the required SDL dlls in sdljava\lib directory (SDL.dll, etc...) Now just set one VM argument and it should work. I just ran testsprite from within Eclipse here without any problems. Here is the screenshot of how I set the arguments. I hope this doesn't work differently under windows. I'm able to run the same tests from the command line on windows also by putting everything in sdljava\lib and using just the one -D switch. I will try with Eclipse on Windows when I have time to see if that works. If you want to do it how you are doing below I belive you have to specify the absolute path shared library. I know others initially had problems with Eclipse but I thought it all worked now. I don't have problems myself. Let me know if you have any luck. -Ivan/ mathieu wrote: > Hi! > > I'm a newbie with sdljava and i've some difficulties to install it. > After many hours it still doesn't work despite all the topics i've > readen about this subject. > > i'm using win XP and Eclipse. My VM argument configured in eclipse is > "-Djava.library.path=D:\SDL\lib" and in this repertory there is > 'SDL.DLL' , SDLjava.dll',... In ".\java\lib" i put the jar files of > sdljava and finally SDL.DLL is in my 'system32' repertory. > > i do my tests under Eclipse with the code : > > /package testSDL;/ > // > /import sdljava.SDLMain;/ > // > /public class SDLMainTest {/ > // > / static { > System.out.println("test0"); > System.loadLibrary("SDLjava"); > System.out.println("test1"); > } > > public static void main(String[] args) {/ > / try { > System.out.println("test2"); > SDLMain.init(SDLMain.SDL_INIT_EVERYTHING);/ > // > / System.out.println("INIT OKAY!"); > > } catch (Exception e) { > System.out.println("INIT FAILED!"); > e.printStackTrace(); > } > } > }/ > > the result is : > > test0 > test1 > test2 > Native code library failed to load. > java.lang.UnsatisfiedLinkError: no sdljava in java.library.path > > I tried a lot of thinks ... without results... Please help me, i'm > deseperate ! :) > > (ps : sorry for my poor english, i'm French :-) ) > |