Hello, I believe that exception means that the CLASSPATH environment variable needs fixing. It should include a reference to the Axis2 directory that contains the jar files for WSDL2C.
I had the same problems when beginning to use WSDL2C. Keep at it, it works well eventually! hth -----Message d'origine----- De : Daniel Gorodowienko [mailto:[EMAIL PROTECTED] Envoyé : lundi, juin 16, 2008 10:56 À : [email protected] Objet : [AXIS2C] [WSDL2C] Tool usage problem. Dear Axis users, I have an issue about creation ANSI C code from WSDL file with usage of WSDL2C.bat script on Windows machine. I have downloaded, unpacked and went through installation notes of: axis2-1.4-bin.zip axis2c-bin-1.4.0-win32.zip distribution-SNAPSHOT-bin.zip Unfortunately I can not make it work, still. For command: C:\axis2c-bin-1.4.0-win32\siri-1.0>java org.apache.axis2.wsdl.WSDL2C -uri <my_file>.wsdl -ss -sd -d none I got a response: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/WSDL2C Caused by: java.lang.ClassNotFoundException: org.apache.axis2.wsdl.WSDL2C 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) at java.lang.ClassLoader.loadClassInternal(Unknown Source) And for command: WSDL2C.bat -uri <my_file>.wsdl -ss -sd -d adb -u I got response: C:\axis2c-bin-1.4.0-win32>echo off Unrecognized option: -uri Could not create the Java virtual machine. I did not find any helpful information on Internet. Any suggestions, please? Best regards, Daniel Gorodowienko --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _____ "Ce message est confidentiel, à l'usage exclusif du destinataire ci-dessus et son contenu ne représente en aucun cas un engagement de la part de AXA, sauf en cas de stipulation expresse et par écrit de la part de AXA. Toute publication, utilisation ou diffusion, même partielle, doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur." "This e-mail message is confidential, for the exclusive use of the addressee and its contents shall not constitute a commitment by AXA, except as otherwise specifically provided in writing by AXA. Any unauthorized disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately." --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
