java - NoClassDefFoundError executing jar using jaxrpc -


i have developed webservice client application using jaxrpc. within eclipse application runs fine, after have exported jar file, following runtime error

d:\>java -jar myclient2.jar exception in thread "main" java.lang.noclassdeffounderror: javax/xml/rpc/service exception         @ mynet.myscheduler.<init>(myscheduler.java:47)         @ mynet.myscheduler.<init>(myscheduler.java:36)         @ mynet.mynetmain.main(mynetmain.java:11) caused by: java.lang.classnotfoundexception: javax.xml.rpc.serviceexception         @ java.net.urlclassloader$1.run(unknown source)         @ java.net.urlclassloader$1.run(unknown source)         @ java.security.accesscontroller.doprivileged(native method)         @ java.net.urlclassloader.findclass(unknown source)         @ java.lang.classloader.loadclass(unknown source)         @ sun.misc.launcher$appclassloader.loadclass(unknown source)         @ java.lang.classloader.loadclass(unknown source)         ... 3 more 

i have tried set classpath variable no changes.

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 

i rather new java newbie question kr

you should consider migrating web service jax-ws. jax-rpc older java web service technology unlikely maintained moving forward.

but single biggest benefit experience of jax-ws runtime , tooling has been part of java jdk since java 6. means can build web services no runtime library dependencies.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -