Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError on object initialization
<p>I have an instance variable, like so:</p>

<pre><code>PathFinder finder;
</code></pre>

<p>(this is using Kevin Glass' A* tutorial, so the PathFinder class is in the same file, link here: <a href="http://cokeandcode.com/index.html?page=tutorials/tilemap2" rel="nofollow">http://cokeandcode.com/index.html?page=tutorials/tilemap2</a>)</p>

<p>Anyways, when I do</p>

<pre><code>finder = new AStarPathFinder(currentMap, 1000, true);
</code></pre>

<p>I get a Exception in thread ""AWT-EventQueue-0" java.lang.ExceptionInInitializerError".</p>

<p>currentMap is an instance of my Map class, and yes it is initialized. 1000 represents the maximum tile distance that will be searched, and the boolean represents diagonal movement true/false. Oh well I'll just throw the constructor at you:</p>

<pre><code>public AStarPathFinder(TileBasedMap map, int maxSearchDistance, boolean allowDiagMovement) {
    this(map, maxSearchDistance, allowDiagMovement, new ClosestHeuristic());
}
</code></pre>

<p>I know it has something to do with static initializers, but I'm not too sure what else. Oh, and I tried to initialize an instance of the same AStarPathFinder class in another class, and I got the same result.</p>
