title: Java Web Start ClassNotFoundException
body: <p>I'm trying to launch a runnable JAR file via web start, but am encountering an error with java not being able to find an external JAR (I think). When running the JNLP file, JWS starts, but then states that the application cannot be opened due to this error:</p>
  
  <pre><code>java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at com.sun.javaws.Launcher.executeApplication(Unknown Source)
  at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
  at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
  at com.sun.javaws.Launcher.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  Caused by: java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
  at DevChat.canConnect(DevChat.java:326)
  at DevChat.&lt;init&gt;(DevChat.java:89)
  at DevChat.main(DevChat.java:348)
  ... 9 more
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.net.ftp.FTPClient
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  ... 12 more
  </code></pre>
  
  <p>The external JAR file mentioned, apache commons, is embedded in the runnable JAR and the JAR runs fine on it's own, just not in JWS. Suggestions?</p>