I've been using processing 1.5.1 with eclipse for a while without problem, and now I'd like to transfer one of my projects built under 2.0a4 in eclipse.
The test project I made is below :
import processing.core.*;
publicclass ProcessingTest extends PApplet {
publicstaticvoid main(String args[]) {
PApplet.main(new String[] { "ProcessingTest" });
}
privatestaticfinallongserialVersionUID = 1L;
inti = 0 ;
publicvoid setup() {
size(640, 320, P3D);
}
publicvoid draw() {
background(i++);
if (i == 255) i = 0;
}
}
It returns me the following error :
Warning: Can't read AppletViewer properties file: /Users/romaindeterre/.hotjava/properties Using defaults.
Exception in thread "Animation Thread" java.lang.RuntimeException: You need to use "Import Library" to add processing.opengl.PGraphicsOpenGL to your sketch.
at processing.core.PApplet.makeGraphics(PApplet.java:1591)
at processing.core.PApplet.size(PApplet.java:1370)
at processing.core.PApplet.size(PApplet.java:1341)
at ProcessingTest.setup(ProcessingTest.java:12)
at processing.core.PApplet.handleDraw(PApplet.java:1881)