title: How do I run WSDL2Java with Axis 1.0?
body: <p>Our clients are using Axis 1.0 to build a client to our WCF based SOAP services.</p>
  
  <p>It's not working for them and I want to run the WSDL2Java client locally on my machine so I can experiment.</p>
  
  <p>I already have the JDK installed on my machine, <code>java</code> works from the command line.</p>
  
  <p>Reading the installation guide for Axis 1.0, and using the -cp switch, I get the following:</p>
  
  <pre><code>java -cp E:\Temp\Axis\xml-axis-10\lib org.apache.axis.wsdl.WSDL2Java
  </code></pre>
  
  <p>(that path contains all the jar files)</p>
  
  <p>And get the following:</p>
  
  <pre><code>Error: Could not find or load main class org.apache.axis.wsdl.WSDL2Java
  </code></pre>
  
  <p>Anybody know what I'm doing wrong?</p>
  
  <p><strong>UPDATE1:</strong></p>
  
  <p>I've tried setting the user CLASSPATH to:</p>
  
  <pre><code>C:\Program Files\Java\jdk1.7.0_09\lib;E:\Temp\Axis\xml-axis-10\lib
  </code></pre>
  
  <p>No dice, same error.</p>
  
  <p><strong>UPDATE2:</strong></p>
  
  <p>If I try this command line, I get something different, it now appear to be loading the class:</p>
  
  <pre><code>E:\Temp&gt;java -cp E:\Temp\Axis\xml-axis-10\lib\axis.jar org.apache.axis.wsdl.WSDL2Java
  Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
          at org.apache.axis.components.logger.LogFactory$1.class$(LogFactory.java:68)
          at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:84)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:80)
          at org.apache.axis.components.logger.LogFactory.&lt;clinit&gt;(LogFactory.java:72)
          at org.apache.axis.i18n.ProjectResourceBundle.&lt;clinit&gt;(ProjectResourceBundle.java:92)
          at org.apache.axis.i18n.MessagesConstants.&lt;clinit&gt;(MessagesConstants.java:71)
          at org.apache.axis.utils.Messages.&lt;clinit&gt;(Messages.java:81)
          at org.apache.axis.wsdl.WSDL2Java.&lt;clinit&gt;(WSDL2Java.java:106)
  
  E:\Temp&gt;
  </code></pre>