I have a small project in java, its 'tree' goes like this:
File Tree:
And i can't seem to be able to read image.jpg in my code like this:
private BufferedImage image = null;
try{
image = ImageIO.read( new File( "resources\image.jpg" ) );
/* ... */
}
catch( IOException exc ){ /*...*/ }
What should be the so-called relative directory in this case? I went through a dozen of similar posts but haven't found answer so far.