Doing it yourself with a small test program will often be a faster way to find a solution than posting a big program here and waiting for someone to make suggestions.
Type: Posts; User: Norm
Doing it yourself with a small test program will often be a faster way to find a solution than posting a big program here and waiting for someone to make suggestions.
Looks like a path problem. If your code is in a package, you have to consider that.
Try more combinations of paths until getResourceAsStream finds the file.
Write a small test program that gets...
Sorry, I don't understand. What image?
Where are you trying to get an image?
The ImageIO class has methods for getting images.
Find What variable on line 43 is null?
Then back track to see why it is null.
Where is the posted error message?
I'm assuming that it is a scope problem for a variable?
Move the definition of the variable to the same scope as where you are referencing it.
Assign it an...
Please copy and paste here the full text of the error message.
If needed, Use printStackTrace to get the full error message.