We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Ok, I have some problem with use of tab with pure .java file. I know that's possible, but I can't get it to work.
The code:
main tab:
import processing.core.Foo;
Foo bar;
void setup() {
}
void draw() {
}
tab called Foo.java:
package processing.core;
import java.io.Serializable;
import processing.core.PApplet;
public class Foo implements Serializable {
}
The error I get:
The package processing.core.Foo does not exist.
The Foo.java file is in the sketch folder, along with the main file (which is called fjlea.pde, so no conflict here).
I tried to put the Foo.java in the ./code directory, as well as in the "sketchbook"/libraries - also without success.
How to get it to work? Is there any doc that describes the procedure?
Answers
Here's a simple example:
"Sketch.pde":
"Foo.java":
Holy!
By reducing your good sketch to mine line by line I found, that the only problem was that I had pointless line:
which caused problems ;)
Many thanks!
Yes, Processing doesn't support package declarations...