NullPointer + Jars
Gregory R. Warnes
warnes@biostat.washington.edu
Thu May 18 20:59:00 GMT 2000
On Thu, 18 May 2000, Jeff Sturm wrote:
JS>> "Gregory R. Warnes" wrote:
JS>> > 1) Why can't it load the resource from the jar?
JS>>
JS>> Is the jar compressed? (I seem to remember problems loading compressed
JS>> archives, though that may have been fixed.)
Eurika! I created an uncompressed jar ("jar -0 -cvf ...") from the raw
files and now the resource data is correctly read.
And yes, I just searched the archives and the problem with compressed jar
files has come up a number of times, although usually in the context of
compiling. This is a real pain because the standard jar tools do compression
by default so one is unlikeley to find a jar file that is not compressed.
Until it compressed jar files work, this should go into the FAQ.
JS>> > 2) Why does it run differently under gdb?
JS>>
JS>> Any chance the SIGSEGV was handled and ignored at runtime? What happens
JS>> if you try "handle SIGSEGV nostop" in gdb?
Nope, "handle SIGSEGV nostop" doesn't make a difference. It still fails
to load the resource bundle. It was a good guess though, any other
ideas?
-Greg
More information about the Java
mailing list