title: A java Exception has Occurred when Running .jar File of GUI
body: <p>I have created a GUI project and compile the program using CMD.</p>
  
  <p>For Creating .jar File, I created manifest.txt and made the jar by using following command:</p>
  
  <pre><code>jar cmf manifest.txt Client.jar *.class
  </code></pre>
  
  <p>this created a .jar file but when I open the Client.jar a Window pops up saying </p>
  
  <p>"A JAVA Exception has Occurred" but when I run the jar from CMD</p>
  
  <pre><code>java -jar Client.jar 
  </code></pre>
  
  <p>It runs properly from CMD but not by clicking on it directly.</p>
  
  <p>What Could be wrong ....?</p>
  
  <p>This is my manifest.txt</p>
  
  <pre><code>Main-Class: ClientTextEdit
  \n
  \n
  </code></pre>
  
  <p>\n----> newline</p>
  
  <p>these are the .class files:</p>
  
  <pre><code> ClientTextEdit.class
   ClientTextEdit$1.class
   ClientTextEdit$2.class
   ClientTextEdit$3.class
   ClientTextEdit$4.class
   ClientConnection.class
  </code></pre>