This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: java.util.Date -> NullPointerException
- To: "Gregory R. Warnes" <warnes at biostat dot washington dot edu>
- Subject: Re: java.util.Date -> NullPointerException
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Thu, 18 May 2000 12:48:03 -0700 (PDT)
- Cc: "\"gcj\" Discussion List" <java-discuss at sourceware dot cygnus dot com>
- References: <Pine.LNX.4.21.0005181603400.20575-100000@hydra.warnes.net>
>>>>> "Gregory" == Gregory R Warnes <warnes@biostat.washington.edu> writes:
Gregory> However, when I try to use java.util.Date, the executable
Gregory> throws a NullPointerException while trying to load
Gregory> gnu/gcj/text/LocaleData_en_US.properties, and dies. (details
Gregory> below)
This works for me.
You don't say how you compiled this. Did you link statically?
When I link statically it hangs (bummer), but YMMV, I guess.
It shouldn't be trying to load a .properties file. It should be
loading the .class file. Typically problems like this occur when
statically linking because it means that the class is not linked into
the executable. We don't have a very good solution for this yet :-(
Gregory> Searching the list shows that I need to set the classpath for
Gregory> the Binary, so I tried setting the classpath:
You shouldn't need to do that in this case. It also shouldn't make a
difference, I think.
Tom