java.util.Date -> NullPointerException
Tom Tromey
tromey@cygnus.com
Thu May 18 12:48:00 GMT 2000
>>>>> "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
More information about the Java
mailing list