title: how to resolve "java.lang.NoClassDefFoundError: org/apache/velocity/context/Context"
body: <p>I'm a new learner of apache cxf. in the first program i implement, i encoutered the following <b>exception</b>( this is what my console display):<br/>
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/velocity/context/Context
  The java code source i run is <br/>
      package com.ttdev;</p>
  
  <p>import org.apache.cxf.tools.wsdlto.WSDLToJava;</p>
  
  <p>public class CodeGenerator {</p>
  
  <pre><code>/**
   * @param args
   */
  public static void main(String[] args) {
      System.out.println("debug");
      WSDLToJava.main(new String[] {
              "-server",
              "-d", "src/main/java",
              "src/main/resources/Service.wsdl" });
              System.out.println("Done!");
  }
  </code></pre>
  
  <p>}
  so how can i resolve this problem.</p>