This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: java.util.Date -> NullPointerException


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]