NullPointer + Jars

Gregory R. Warnes warnes@biostat.washington.edu
Thu May 18 19:14:00 GMT 2000


On 2000年5月19日, Bryce McKinlay wrote:
 BM>> "Gregory R. Warnes" wrote:
 BM>> 
 BM>> > The example program "HelloDate.java" is attached, as is the getopt jar
 BM>> > file.
 BM>> >
 BM>> > 1) My code uses the gnu getopt code for java. When the jar file is in the
 BM>> > classpath, the program throws a NullPointerException on startup (see
 BM>> > below). When the un-jar-ed data is on the classpath, everything runs
 BM>> > correctly.
 BM>> 
 BM>> As you've probably guessed, the interpreter is much less well tested than the rest
 BM>> of (lib)gcj. The reason your finding bugs here is possibly because nobody has tried
 BM>> to do this before (that is, put a .jar file on the classpath and run something from
 BM>> it ;-)
Actually, I didn't want to touch the interpreter, so I the getopt code is 
compiled in. 
 BM>> I haven't tried your test case, but I think I found the problem. Can you try the
 BM>> patch below?
Will try..
 BM>> 
 BM>> > libgcj configuration:
 BM>> >
 BM>> > ../libgcj/configure --prefix=/usr --disable-threads --norecursion
 BM>> 
 BM>> Any particular reason to build without threads? Was there a problem there? Just
 BM>> curious...
Yes actually. I have a cluster of machines running MOSIX. MOSIX will
dynamically migrate processes around the cluster in order to get the
maximum performance. Unfortunately, MOSIX doesn't support (kernel)
threaded processes.
-Greg


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /