I need to load a .bmp file from a jared application NOT a jared applet. It works just fine until I jar it then the file loader I made no longer finds the bitmap. I searched sun.com and all I could find was a suggestion that I use getClass().getResource( "mybitmap.bmp" ) but like every one else in the forum all I get is a null URL reference. Any suggestions?
I wanrned you! Didn''t I warn you?! That colored chalk was forged by Lucifer himself! Opere Citato
The problem is that the bitmap is in the jar. It kinda looks like this:
Class Lisa toothless.crack.whore.Lisa Hooker.bmp toothless.crack.whore.pictures.Hooker.bmp
The picture that the class Lisa needs to load is in the jar directory toothless.crack.whore.pictures. I have tried all sorts of combinations of the package with the name of the bitmap but nothing works for the jar. Works just fine outside the jar if I just put the package name infront of the bitmap. If this was an applet I would get the codebase but I don''t know what to do for an application. I thought that having the . in the classpath was supposed to take care of this but I guess not.
I wanrned you! Didn''t I warn you?! That colored chalk was forged by Lucifer himself!