Getting error with ImageIO.read(getClass().getResourceAsStream (input==NULL)?
问题 I keep getting this error when I use the following code: try { image=ImageIO.read(getClass().getResourceAsStream("build/classes/javaproject/Space.gif")); } catch (IOException ex) { lastException=ex; } It gives keeps giving me the "input==null" error. I have already tried to find a solution to this (several answered questions already had the solution actually, but those didn't work for me) but I haven't had any luck. This one for example was very similar to my problem, but I can't seem to find