Monday 3 November 2008

Processing IDEs

Having had a play with the Processing IDE, I started to wonder if I could use Eclipse or NetBeans instead, in order to use the more powerful features of these IDEs. Turns out, you can and it's very easy.

All you need to do is:
  • create a project to work on
  • add the processing core.jar to the project classpath by selecting it, from the downloaded processing directory, in the project's properties
  • create a class that extends processing.core.PApplet
The Processing code then be written as normal, with 1 small exception (so far!) - the inherited setup and draw methods appear to be public, so the overriden methods need to be public as well, ie



import processing.core.PApplet;

public class Main extends PApplet{

public void setup() {
size(200,200);
background(0);
}

public void draw() {

}

1 comment:

monkstone said...

Curious I found I also needed to have a main method with netbeans to get my code to run.