We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Processing (Beta) BlueJ
Page Index Toggle Pages: 1
Processing (Beta) BlueJ (Read 1251 times)
Processing (Beta) BlueJ
Jun 19th, 2005, 11:17am
 
I tried integrating processing with the BlueJ Java IDE, its a bit more light weight then Eclipse, smaller download...

Anyhow, I got some limited success following the REAS/Toxi Eclipse guide, I imported the libary and compiled the code. I can get a web applet version working, but it won't run in BlueJ's appletviewer.

Also, the MyGUI libary that I'm developing is having problems, I got a compile error that color was not a recognised type - I'd already imported the core.* and tried extending PApplet but still got the same emssage.

I'll look into this again when I get back.
Re: Processing (Beta) BlueJ
Reply #1 - Jun 20th, 2005, 5:47pm
 
(Yes I love double post in multiple threads to draw attention, just incase future people don't know where to look in a forum.)

Heres the link to BlueJ IDE, we use it at university to learn java.
http://www.bluej.org/

I was trying to get it to work with Processing, with limited success. I started by going to BlueJ > Preferences > Libraries - and added the Processing core.jar.

...



And I managed to get the Eclipse example working:

Code:
import processing.core.*; 

public class HelloP5 extends PApplet{

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

public void draw(){
line(mouseX,mouseY,width/2,height/2);
}

}


It compiled, and I ran the applet from BlueJ - it doesn't work in the applet viewer, but does work if you run it in a web browser.

However, I cannot get the applet to compile if the color variable is used. I get the error "cannot resolve symbol - class color not found". This pretty much puts a dent in any normal processing work that I had planned involving color's.

Any suggestions welcome, I'm a bit stuck at the moment.
Re: Processing (Beta) BlueJ
Reply #2 - Jun 20th, 2005, 6:16pm
 
I found a similar problem occurs with Processing and Eclipse - the color type is not detected and so causes a compiler error.

Edit: depth solved this one,
Quote:
the color type is actually just an int.

http://processing.org/discourse/yabb/YaBB.cgi?board=Integrate;action=display;num=1106256315;start=48

(and a whole bunch of other data types besides color->int need adjusting)
Page Index Toggle Pages: 1