exception in static initializer
<p>I have a GUI application. In my main class I have a method (called <code>createAndShow()</code>) to initialize all my GUI classes. Inside each GUI class, I have <code>static initializer</code> to read properties files(resource bundles or configuration files). If a file or entry is missing or value is wrong, I catch the exception and then throws a <code>MissingResourceException</code> to upper level on purpose. In my <code>createAndShow()</code> method of the main class, I put a try-catch to catch <code>Exception</code>. But somehow JVM refuse to get there. Whenever a file is missing, that <code>MissingResourceException</code> is thrown and then the application just hang. I expected the <code>createAndShow()</code> method will catch that exception and exit gracefully. Is there anything special for exceptions throws from the static initializer?</p>

<p>I am using XP and java 1.6.</p>
