java.util.Date -> NullPointerException
Gregory R. Warnes
warnes@biostat.washington.edu
Thu May 18 13:10:00 GMT 2000
Compile/link was:
gcc -o HelloDate --main=HelloDate HelloDate.java
which gives a dynamically loaded file.
-Greg
On 2000年5月18日, Tom Tromey wrote:
TT>> >>>>> "Gregory" == Gregory R Warnes <warnes@biostat.washington.edu> writes:
TT>>
TT>> Gregory> However, when I try to use java.util.Date, the executable
TT>> Gregory> throws a NullPointerException while trying to load
TT>> Gregory> gnu/gcj/text/LocaleData_en_US.properties, and dies. (details
TT>> Gregory> below)
TT>>
TT>> This works for me.
TT>>
TT>> You don't say how you compiled this. Did you link statically?
TT>> When I link statically it hangs (bummer), but YMMV, I guess.
TT>>
TT>> It shouldn't be trying to load a .properties file. It should be
TT>> loading the .class file. Typically problems like this occur when
TT>> statically linking because it means that the class is not linked into
TT>> the executable. We don't have a very good solution for this yet :-(
TT>>
TT>> Gregory> Searching the list shows that I need to set the classpath for
TT>> Gregory> the Binary, so I tried setting the classpath:
TT>>
TT>> You shouldn't need to do that in this case. It also shouldn't make a
TT>> difference, I think.
TT>>
TT>> Tom
TT>>
More information about the Java
mailing list