 |
Author |
Topic: JBuilder - rookie question (Read 1186 times) |
|
SJL
|
JBuilder - rookie question
« on: Jun 12th, 2004, 2:29am » |
|
Does anyone succesfully use P5 with JBuilder? I create an applet that extends BApplet and include all the P5 jar files in the project, but somehow JBuilder keeps telling me it does not find BApplet... When opening the pde.jar file, BApplet.class is there. I am quite new to JBuilder and Java... any hint warmly welcomed! Thanks, SJL
|
|
|
|
amoeba
|
Re: JBuilder - rookie question
« Reply #1 on: Jun 12th, 2004, 12:28pm » |
|
I'm using JBuilder, and had the same problems at first. What you need to do is copy all the class files from the \lib\export directory found under the Processing directory. Put these in a separate directory, then open your Project Properties panel in JBuilder. I've used the class files, maybe you could do it with the JAR file too. Under the tab that says "Required Libraries", click the Add button and define the directory with the Processing files as a new library. I've put it in "User Home", not sure what the difference is. By including this library in future projects, you should be able to compile successfully. Good luck!
|
marius watz // amoeba http://processing.unlekker.net/
|
|
|
SJL
|
Re: JBuilder - rookie question
« Reply #2 on: Jun 13th, 2004, 12:10am » |
|
Thanks, adding the export/ dir to Required Libraries works as you described. Before JBuilder, I tried Eclipse but it really is a resource hog on my old 600MHz PIII (too bad, it has such great professionakl look). JbuilderX (Foundation, the free edition) seems much faster. I still have a few questions: - a line like 'color myRed = color(255, 0, 0);' does not compile (unknown type 'color'). The color() method from BApplet returns an int and this seem to work ok. What am I doing wrong (or nor doing at all)? - can I configure JBuilder to use my local JDK and not the included one (which is not that old btw, 1.4.2_01-b06 but I find it awkward to have two JDK on my computer, one for the private use of JBuilder). Thanks for your tip!
|
|
|
|
william

|
Re: JBuilder - rookie question
« Reply #3 on: Jun 13th, 2004, 12:21am » |
|
try "int" instead of "color", as the function color() returns an integer, I think... To configure JDK version, go to Project > Project Properties and choose the "Paths" tab. (JBuilder 7.) I have a question for Processing in JBuilder too -- if using packages, I can't access varibles like "width" and "height" (not "public" access, it seems). Is there any way around it?
|
|
|
|
arielm
|
Re: JBuilder - rookie question
« Reply #4 on: Jun 13th, 2004, 12:08pm » |
|
on Jun 13th, 2004, 12:21am, william wrote:I have a question for Processing in JBuilder too -- if using packages, I can't access varibles like "width" and "height" (not "public" access, it seems). Is there any way around it |
| the reason is that it's not kosher in java to refer from a packaged class to a class that is not, but ben is planning to have the whole processing engine packaged for the forthcoming "big" version.
|
Ariel Malka | www.chronotext.org
|
|
|
|