Skip to content
Advertisement

Tag: applet

getClassLoader().getResource() returns null

I have this test app: When I run it from Eclipse, I get the error: Classpath (from .CLASSPATH file) In my c:projectsrc folder, I have only the Test.java file and the ‘assets’ directory which contains pacman.png. What am I doing wrong and how to resolve it? Answer I would do it this way: “/assets/pacman.png” is an absolute location whle “assets/pacman.png”

Advertisement