I am developing a program based on Web Services. Server part is OK. I am developing a java client for one method of the Web Service. I am using eclipse as IDE. Basically, the client is a java main class that is listenning to an UDP port and at data arrival, a call has to be made to the corresponding method of the web service. If a run this class with Eclipse as Java bean or as java application it works perfect but I can�t find the way of running it out of eclipse, I mean, in a linux server or my own windows command line.
If I export the project as jar and execute I get this exception:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service at java.lang.ClassNotFoundException: javax.xml.rpc.ServiceException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.defineClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Thanks in advance.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com