Eclipse & OpenGL on Mac OS X Exception in thread "Animation Thread"
import processing.core.*;
import processing.opengl.*;
public class testingOpenGL extends PApplet {
//private static final long serialVersionUID = 1L;
float a;
public void setup() {
size(800, 600, OPENGL);
fill(0, 153);
noStroke();
}
public void draw() {
background(255);
translate((width/2), (height/2));
rotateX(a);
rotateY(a*2);
rect(-200, -200, 400, 400);
rotateX(PI/2);
rect(-200, -200, 400, 400);
a += 0.01;
}
}
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: javax/media/opengl/glu/GLUtessellatorCallback
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at processing.core.PApplet.makeGraphics(PApplet.java:1322)
at processing.core.PApplet.size(PApplet.java:1149)
at processing.core.PApplet.size(PApplet.java:1109)
at testingOpenGL.setup(testingOpenGL.java:29)
at processing.core.PApplet.handleDraw(PApplet.java:1583)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.glu.GLUtessellatorCallback
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 11 more
with Eclipse 3.6.1
JOGL libraries supplied with the opengl package
Processing 1.2.1.