Re: Error building JOGL with Java 7
Posted by Qu0ll on Aug 03, 2011; 7:11pm
URL: https://forum.jogamp.org/Error-building-JOGL-with-Java-7-tp3217275p3223234.html
Thanks Wade, I can confirm that the build now works with that modification.
However, are you able to run the demos of the new text renderer? I get the following running com.jogamp.opengl.test.junit.graph.demos.GPUTextNewtDemo02:
Exception in thread "main" java.lang.NoClassDefFoundError: android/content/Context
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethod(Unknown Source)
at com.jogamp.common.util.ReflectionUtil.getMethod(ReflectionUtil.java:244)
at com.jogamp.common.util.AndroidPackageUtil.<clinit>(AndroidPackageUtil.java:42)
at com.jogamp.common.util.JogampVersion.<init>(JogampVersion.java:58)
at com.jogamp.common.GlueGenVersion.<init>(GlueGenVersion.java:40)
at com.jogamp.common.GlueGenVersion.getInstance(GlueGenVersion.java:51)
at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1174)
at javax.media.opengl.GLProfile.access$000(GLProfile.java:71)
at javax.media.opengl.GLProfile$1.run(GLProfile.java:112)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:110)
at com.jogamp.opengl.test.junit.graph.demos.GPUTextNewtDemo02.main(GPUTextNewtDemo02.java:60)
Caused by: java.lang.ClassNotFoundException: android.content.Context
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 14 more
Are there any new requirements to run these demos?