I have a Java exception: java.lang.NumberFormatException
<p>Edit:
I was forgot to change the start class to the client package in Eclipse!</p>

<p>This is odd, it works fine in eclipse, then I export it and it gives me a <code>java.lang.NumberFormatException</code> .</p>

<p>The pastebin of Start.java</p>

<p><a href="http://pastebin.com/KxfApWKb" rel="nofollow">http://pastebin.com/KxfApWKb</a></p>

<p>The dump:</p>

<pre><code>Exception in thread "main" java.lang.NumberFormatException: For input string: "gudenau.no-ip.org"

        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.&lt;init&gt;(Unknown Source)
        at com.gudenau.ChatServer.Start.main(Start.java:141)
</code></pre>

<p>I don't get why it works in eclipse but not with a batch file.</p>

<p>The code I use for the socket is</p>

<pre><code>socket = new Socket("gudenau.no-ip.org", 45678);
</code></pre>

<p>I will change this to not be static later.</p>

<pre><code>    try {
        socket = new Socket("gudenau.no-ip.org", 45678);

        out = new PrintWriter(socket.getOutputStream(), true);
        in = new BufferedReader(new InputStreamReader(
                socket.getInputStream()));
    } catch (NumberFormatException e) {
        e.printStackTrace();
        System.exit(-1);
    } catch (UnknownHostException e) {
        e.printStackTrace();
        System.exit(-2);
    } catch (IOException e) {
        e.printStackTrace();
        System.exit(-3);
    }
</code></pre>

<p>Edit the code around 141:</p>

<pre><code>@Override
public void windowIconified(WindowEvent arg0) {
    // TODO Auto-generated method stub

}

@Override
public void windowOpened(WindowEvent arg0) {
    // TODO Auto-generated method stub

}
</code></pre>
