title: Java JAR behaving differently to program run out of IDE
body: <p>Ok, so I have been making a chat client in netbeans and I'm pretty much done.
  I decided to clean and build to test it standalone.</p>
  
  <p>However, when a message is received from the other program using sockets (Connection goes fine), the program closes. This issue never occurred when it was run straight from the IDE.</p>
  
  <p>So, what I am wondering is whether the program behaves differently(well it obviously does, but how?) once it is clean and built into a jar. Is there something extra I must take into account. Such as does an exception mean it will all suddenly cease?</p>
  
  <p>Also, since it only occurs with the built jar I cannot see any exceptions that may have occurred. I am very stumped...</p>