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



Compile/link was:

gcc -o HelloDate --main=HelloDate HelloDate.java

which gives a dynamically loaded file.


-Greg



On Thu, 18 May 2000, 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>> 


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