eclipse - JOGL throwing ClassNotFoundException? -


i've seen question brought couple of times on website, never seen clear answer, excuse me repeating it. while programming jogl , java3d i've encountered errors. trying create project might put on android app store. began project using java3d , jogl , putting them in system library on mac, worked fine. try make project portable moved j3d , jogl files inside project compiled jar file runnable without needing install j3d , jogl. every time ran project threw error:

exception in thread "main" java.lang.noclassdeffounderror: javax/media/opengl/gl     @ java.lang.class.forname0(native method)     @ java.lang.class.forname(class.java:190)     @ javax.media.j3d.pipeline$pipelinecreator.run(pipeline.java:73)     @ javax.media.j3d.pipeline$pipelinecreator.run(pipeline.java:61)     @ java.security.accesscontroller.doprivileged(native method)     @ javax.media.j3d.pipeline.createpipeline(pipeline.java:90)     @ javax.media.j3d.mastercontrol.loadlibraries(mastercontrol.java:832)     @ javax.media.j3d.virtualuniverse.<clinit>(virtualuniverse.java:274)     @ javax.media.j3d.groupretained.<init>(groupretained.java:155)     @ javax.media.j3d.transformgroupretained.<init>(transformgroupretained.java:116)     @ javax.media.j3d.transformgroup.createretained(transformgroup.java:114)     @ javax.media.j3d.scenegraphobject.<init>(scenegraphobject.java:114)     @ javax.media.j3d.node.<init>(node.java:172)     @ javax.media.j3d.group.<init>(group.java:549)     @ javax.media.j3d.transformgroup.<init>(transformgroup.java:87)     @ src.project.<clinit>(project.java:47)     @ src.projectpanel.<clinit>(projectpanel.java:8) caused by: java.lang.classnotfoundexception: javax.media.opengl.gl     @ java.net.urlclassloader$1.run(urlclassloader.java:366)     @ java.net.urlclassloader$1.run(urlclassloader.java:355)     @ java.security.accesscontroller.doprivileged(native method)     @ java.net.urlclassloader.findclass(urlclassloader.java:354)     @ java.lang.classloader.loadclass(classloader.java:424)     @ java.lang.classloader.loadclass(classloader.java:357)     ... 17 more 

i'm using eclipse ide, , have jogl-all.jar , gluegen-rt.jar files in classpath of project, of require j3d jars, cannot find gl.class file reason.

thanks in advance help.

when export application runnable jar use + library handling: copy required libraries sub-folder next generated jar or + library handling: package required libraries generated jar

more information available in jogamp jogl wiki: http://jogamp.org/wiki/index.php/setting_up_a_jogamp_project_in_your_favorite_ide http://jogamp.org/wiki/index.php/jogamp_jar_file_handling

also need use java -jar yourapp.jar command line option run application.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -