I'm trying to use WSDL2Java on my Mac.
I setup the 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 I run
java -cp $CLASSPATH org.apache.wsdl.WSDL2JAVA mywsdl.wsdl
I get an error.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/wsdl/WSDL2JAVA
Caused by: java.lang.ClassNotFoundException: org.apache.wsdl.WSDL2JAVA
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Can someone help me fix my class path issue please.