Hi,
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.*;
- public class ProcessingTest extends PApplet {
- public static void main(String args[]) {
- PApplet.main(new String[] { "ProcessingTest" });
- }
- private static final long serialVersionUID = 1L;
- int i = 0 ;
- public void setup() {
- size(640, 320, P3D);
- }
- public void 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)
- at processing.core.PApplet.run(PApplet.java:1803)
- at java.lang.Thread.run(Thread.java:680)
Is there something I do wrong?
I'm under MacOS 10.7.2 with eclipse 1.4.1
Thanks,
Romain
1