P2D and P3D
in
Integration and Hardware
•
10 months ago
Hello,
I'm new to processing and I was doing some tutorials. First of all, I must say that I'm enjoying this but I'm having some problems. I'm running processing through Netbeans programming Java (I've imported the core.jar library). Everytime I try to use P2D and P3D it gives me an error:
- java.lang.NoClassDefFoundError: javax/media/opengl/GLException
- at processing.opengl.PGraphicsOpenGL.<init>(PGraphicsOpenGL.java:471)
- at processing.opengl.PGraphics2D.<init>(PGraphics2D.java:39)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
- at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
- at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
- at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
- at processing.core.PApplet.makeGraphics(PApplet.java:1736)
- at processing.core.PApplet.size(PApplet.java:1588)
- at processing.core.PApplet.size(PApplet.java:1559)
- at processingexamples.Example1.setup(Example1.java:11)
- at processing.core.PApplet.handleDraw(PApplet.java:2103)
- at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:190)
- at processing.core.PApplet.run(PApplet.java:2006)
- at java.lang.Thread.run(Thread.java:662)
- Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLException
- at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
- ... 14 more
- Exception in thread "Animation Thread" java.lang.RuntimeException: javax/media/opengl/GLException
- at processing.core.PApplet.makeGraphics(PApplet.java:1761)
- at processing.core.PApplet.size(PApplet.java:1588)
- at processing.core.PApplet.size(PApplet.java:1559)
- at processingexamples.Example1.setup(Example1.java:11)
- at processing.core.PApplet.handleDraw(PApplet.java:2103)
- at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:190)
- at processing.core.PApplet.run(PApplet.java:2006)
- at java.lang.Thread.run(Thread.java:662)
Can someone help?
Thanks.
1