Solved(?) Java heap space error.