Bonjour.
Je travail sous eclipse et mon programme tourne très bien dessus.
J'ai importer les librairies pour pouvoir utiliser opengl dans mon programme.
Mais, quand j'exporte mon programme dans un .jar executable, j'ai des erreurs à l'execution :
Eclipse me produit ce manifest :
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 C:\Users\Alexandre\Desktop>java -jar Tetraedre.jar Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa der.java:56) Caused by: java.lang.UnsatisfiedLinkError: no jogl in java.library.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.loadLibraryInternal(NativeLibLoad er.java:189) at com.sun.opengl.impl.NativeLibLoader.access$000(NativeLibLoader.java:4 9) at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeL ibLoader.java:80) at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java: 103) at com.sun.opengl.impl.NativeLibLoader.access$200(NativeLibLoader.java:4 9) at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:111) at java.security.AccessController.doPrivileged(Native Method) at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:109 ) 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.chooseGraphicsConfiguration(GLCanvas.java :520) at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:131) at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:90) at TetraedreSierpinski3D.<init>(TetraedreSierpinski3D.java:23) at Fenetre.<init>(Fenetre.java:21) at Fenetre.main(Fenetre.java:29) ... 5 more
Manifest-Version: 1.0
Rsrc-Class-Path: gluegen-rt.jar jogl-natives-win32.jar jogl.jar
Class-Path: .
Rsrc-Main-Class: Fenetre
Main-Class: org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader
Quelqu'un pourrait m'éclairer ?
Merci.
Partager