Hi Tony,
Sorry, wasn't thinking clearly last night. The
Java Language Specification tells us that
static initializers cannot throw checked exceptions:
Static initializers (�8.7), class variable initializers, and instance initializers or instance variable initializers within named classes and interfaces (�8.3.2), must not result in a checked exception; if one does, a compile-time error occurs.
So you cannot throw the IOException or FileNotFoundException from the static initializer.
Regards, Andrew
[ July 28, 2003: Message edited by: Andrew Monkhouse ]