java - WSDL2Java Throws Could not find main class: org.apache.axis.wsdl.WSDL2Java -


i'm trying use wsdl2java on mac.

i setup classpath in bash.

axis=/users/bernie/axis-1_4/lib  classpath=".:$axis/axis-ant.jar:$axis/axis.jar:$axis/commons-discovery-0.2.jar:$axis/commons-logging-1.0.4.jar:$axis/jaxrpc.jar:$axis/log4j-1.2.8.jar:$axis/saaj.jar:$axis/wsdl4j-1.5.1.jar"; 

but when run

java -cp $classpath org.apache.wsdl.wsdl2java mywsdl.wsdl 

i error.

exception in thread "main" java.lang.noclassdeffounderror: org/apache/wsdl/wsdl2java caused by: java.lang.classnotfoundexception: org.apache.wsdl.wsdl2java     @ java.net.urlclassloader$1.run(urlclassloader.java:202)     @ java.security.accesscontroller.doprivileged(native method)     @ java.net.urlclassloader.findclass(urlclassloader.java:190)     @ java.lang.classloader.loadclass(classloader.java:307)     @ sun.misc.launcher$appclassloader.loadclass(launcher.java:301)     @ java.lang.classloader.loadclass(classloader.java:248) 

can me fix class path issue please.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -