one litle noob question.
i have a jared lwgl aplication which i try to run with the usual classpath and library path
flx@kadath:/mnt/win_d/workspace/LWGL_textures$ java -cp ../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_util.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_devil.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_test.jar":textureManager.jar -Djava.library.path="../lwgl/lwjgl-linux-0.99/native/" -jar textureManager.jar
it seems to fail to load the clases on the classpath, since i get the known
Exception in thread "Thread-2" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
at com.proyectoanonimo.flx.lwgl.utils.TextureManager$4.run(TextureManager.java:298)
at java.lang.Thread.run(Thread.java:595)
however, if i run the same app accessing directly the main class inside the jar, including the jar in the classpath:
flx@kadath:/mnt/win_d/workspace/LWGL_textures$ java -cp ../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_util.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_devil.jar":../lwgl/"lwjgl-linux-0.99"/jar/"lwjgl_test.jar":textureManager.jar -Djava.library.path="../lwgl/lwjgl-linux-0.99/native/" com.proyectoanonimo.flx.lwgl.utils.TextureManager
it runs fine.
how should i specify the classpath to run my aplication with java -jar ?