title: NoClassDefFoundError executing jar using jaxrpc
body: <p>I have developed a Webservice client application using jaxrpc. Within eclipse the application runs fine, however after I have exported the jar file, I get the following runtime error</p>
  
  <pre><code>D:\&gt;java -jar Myclient2.jar
  Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service
  Exception
          at Mynet.MyScheduler.&lt;init&gt;(MyScheduler.java:47)
          at Mynet.MyScheduler.&lt;init&gt;(MyScheduler.java:36)
          at Mynet.MyNetMain.main(MyNetMain.java:11)
  Caused by: java.lang.ClassNotFoundException: javax.xml.rpc.ServiceException
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          ... 3 more
  </code></pre>
  
  <p>I have tried to set the CLASSPATH variable but no changes.<br></p>
  
  <pre><code>set CLASSPATH=%CLASSPATH%;D:\eclipse\plugins\javax.xml.rpc_1.1.0.v201209140446\lib\jaxrpc.jar
  set CLASSPATH=%CLASSPATH%;D:\eclipse\plugins\org.apache.axis_1.4.0.v201005080400\lib\axis.jar
  
  echo %CLASSPATH%
  java -jar Myclient2.jar
  </code></pre>
  
  <p>I am rather new to java so definitely a newbie question
  KR</p>