Re: [sdljava-users] sdljava (?install?) problem
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2006-03-19 02:08:39
|
Greetings Karel, I'm not sure why you are having that problem. It is very strange. Try to compile the classes on your own and not using the jar file. What happens then? -Ivan/ Karel X wrote: >Hi, I have some problems with sdljava. When I compile and run any code applying SDL, like this testing code: > >--------------------------------------------------------------------------------- >package sdljava; > >public class SDLMainTest { > > static { > System.loadLibrary("sdljava"); > } > > public static void main(String[] args) { > try { > SDLMain.init(SDLMain.SDL_INIT_EVERYTHING); > > System.out.println("INIT OKAY!"); > > } catch (Exception e) { > System.out.println("INIT FAILED!"); > e.printStackTrace(); > } // try-catch > } >} >------------------------------------------------------------------------------------- >then I will get this error: >------------------------------------------------------------------------------------- >java.lang.NoClassDefFoundError: SDLMainTest (wrong name: sdljava/SDLMainTest) > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(Unknown Source) > at java.security.SecureClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.defineClass(Unknown Source) > at java.net.URLClassLoader.access$100(Unknown Source) > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClassInternal(Unknown Source) >Exception in thread "main" >Exit code: 1 > >------------------------------------------------------------------------------------- > >When I have installing sdljava, I have set CLASSPATH to C:\Program Files\Java\sdljava-0.9.1\lib\sdljava.jar;. . >What shell I still do? > >Thanks. > >P.S.: Please, excuse my poor English :) > > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |