Bonjour à tous, j'essaie de compiler un programme basique utilisant JOGL pour afficher un objet tri-dimensionnel en OpenGl sous java. Cependant, je dois pouvoir exécuter le programme sous un système sun, mac unix ou microsoft windows. Je développe avec le SDK Java 1.5, Eclipse 3.2 et le plugin FatJar. Mon problème est le suivant: sur ma machine windows, le .Jar complié par Fatjar fonctionne parfaitement, sur une machine autre que le mienne où les dll ne sont pas installée (pour ne parler que de windows) le programme affiche l'erreur suivante:
Je voudrais pouvoir inclure JOGL dans l'archive Jar pour ne plus avoir à l'installer sur le système d'exécution du programme, est-ce possible?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 C:\Users\Transferts>java -jar Test_fat.jar Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.libra ry.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeL ibLoader.java:78) at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java: 101) at com.sun.opengl.impl.NativeLibLoader.access$100(NativeLibLoader.java:4 7) at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:109) at java.security.AccessController.doPrivileged(Native Method) at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:107 ) at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(Windows GLDrawableFactory.java:60) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.jav a:106) at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:113) at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:82) at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:75) at visualisation.test1.main(test1.java:48)
Merci d'avance
Partager