Ok, so I'm writing this game. It was working fine using the 1.7_02 jdk, but then I downgraded it to 1.5 so that it would run on my brother's Mac. Now when I run it, it can't load png files. Here's the code that generates the exception:
This code generates the following stacktrace + exception
I also tried this instead, but it gave me the same thing
If anyone has any ideas why 1.5 would throw this exception but 1.7 wouldn't that would be great.
Apple and Java? Yeah, no kidding. Anyway Sun and Oracle have always published a big list of bug fixes along with their "What changed in this version" document. It would be tedious, but if you were really interested you could track down those documents and read all of the bug fixes to see if that's one of them.
Haha, yeah. I don't think I'm that committed. I originally installed 1.5.0, and there were 22 updates until 1.6. I guess I could just try to narrow down where it breaks by downloading a few more JREs, maybe then I'd stand a chance.
After some trial and error, I finally found that the problem was fixed by the update from 1.5.0_22 -> 1.6.0. I don't know if this might help anyone figure out how I might run my code on 1.5 but I'm still looking for a solution and any help would be appreciated.