where should files be located when using loadImage in eclipse with proclipsing?
in
Integration and Hardware
•
1 year ago
I get a filenotfoundexception
and am told
arg0
"C:\\Users\\pdb\\workspace\\showimage\\bin\\photo.jpg (The system cannot find the file specified)" (id=51)
when i run the code below.
the file photo.jpg is in the directory (and i've tried putting it everywhere else i can think of).
i've tried "Edit source lookup path" and tried adding folders - too know avail.
I'm new to Eclipse and suspect i'm doing (or not doing) something obviouse
please helop
package showimage;
import processing.core.PApplet;
import processing.core.PImage;
public class Showimage extends PApplet {
PImage pic;
public void setup() {
size(640, 480);
pic = loadImage("photo.jpg");
}
public void draw() {
image(pic, 0, 0);
}
}
1