hi...in my app, i am trying to read some pre-stored images from jar file..I am using netbeans..my questions are:-
1) i created a folder called "res" and stored all my images in it. Then in my code :-
The problem is that is4 is giving null here..Its not able to find the ".jpeg" image. I also tried using
InputStream is4 = getClass().getResourceAsStream("/res/basic.jpeg");
still, it gave null pointer exception...
Where exactly can I put my pre-defined imagefiles in jar and in wat location..What are the settings required in netbeans for this apart from adding res folder?
PS:- I also tried using "/basic.jpeg", "basic.jpeg", "res/basic.jpeg"
Please help on this