NullPointer + Jars
Bryce McKinlay
bryce@albatross.co.nz
Thu May 18 19:07:00 GMT 2000
"Gregory R. Warnes" wrote:
> The example program "HelloDate.java" is attached, as is the getopt jar
> file.
>> 1) My code uses the gnu getopt code for java. When the jar file is in the
> classpath, the program throws a NullPointerException on startup (see
> below). When the un-jar-ed data is on the classpath, everything runs
> correctly.
As you've probably guessed, the interpreter is much less well tested than the rest
of (lib)gcj. The reason your finding bugs here is possibly because nobody has tried
to do this before (that is, put a .jar file on the classpath and run something from
it ;-)
I haven't tried your test case, but I think I found the problem. Can you try the
patch below?
> libgcj configuration:
>> ../libgcj/configure --prefix=/usr --disable-threads --norecursion
Any particular reason to build without threads? Was there a problem there? Just
curious...
regards
[ bryce ]
More information about the Java
mailing list