java.lang.NoSuchMethodError: javax.media.opengl.GLDrawableFactory.initSingleton()V -
i trying use jzy3d libraries in java project.
starting basic, set following main():
public static void main(final string[] args) { new glcapabilities(glprofile.getdefault()); } the jogl-all.jar, gluegen-rt.jar , gluegen.jar files in build path. following exception:
exception in thread "main" java.lang.nosuchmethoderror: javax.media.opengl.gldrawablefactory.initsingleton()v @ javax.media.opengl.glprofile.initprofilesfordefaultdevices(glprofile.java:1444) @ javax.media.opengl.glprofile.access$100(glprofile.java:76) @ javax.media.opengl.glprofile$1.run(glprofile.java:174) @ java.security.accesscontroller.doprivileged(native method) @ javax.media.opengl.glprofile.initsingleton(glprofile.java:140) @ javax.media.opengl.glprofile.initsingleton(glprofile.java:199) @ javax.media.opengl.glprofile.getprofilemap(glprofile.java:1914) @ javax.media.opengl.glprofile.get(glprofile.java:815) @ javax.media.opengl.glprofile.getdefault(glprofile.java:602) @ javax.media.opengl.glprofile.getdefault(glprofile.java:613) @ eu.crisis_economics.abm.model.specscompetitionstrategycfo.main(specscompetitionstrategycfo.java:312) it seems there problem 3d libraries, cannot figure out what.
the jogl-all.jar, gluegen-rt.jar , gluegen.jar files in build path. following exception:
remove gluegen.jar build path. make sure these 2 jars added classpath @ runtime well! need jogl-all.jar , gluegen-rt.jar (rt == runtime) @ compile time , runtime.
also need have copy of matching native jars gluegen-rt-natives-os.and.arch.jar , jogl-all-natives-os.and.arch.jar platform use next gluegen-rt.jar , jogl-all.jar http://jogamp.org/jogl/doc/deployment/jogl-deployment.html#nativejarfiles
Comments
Post a Comment