title: weblogic.appc command failed using ANT script in WebLogic Server 10.3.5.0
body: <p>I am migrating an application from weblogic 8.1 to weblogic 10.3.5 version. 
  while building application through ant script; I am getting below error:- </p>
  
  <p>weblogic.appc.run: </p>
  
  <pre><code>[java] Usage: java weblogic.appc [options] &lt;ear, jar, war or rar file or directory&gt; 
  [java] 
  [java] where options include: 
  [java] -help Print the standard usage message. 
  [java] -version Print version information. 
  [java] -output &lt;file&gt; Specifies an alternate output archive or 
  [java] directory. If not set, output will be 
  [java] placed in the source archive or directory. 
  [java] -plan &lt;file&gt; Specifies an optional deployment plan. 
  [java] -forceGeneration Force generation of EJB and JSP classes. 
  [java] Without this flag the classes may not be 
  [java] regenerated if it is determined to be 
  [java] unnecessary. 
  [java] -quiet Turns off output except for errors 
  [java] -lineNumbers Add JSP line numbers to generated class 
  [java] files to aid in debugging. 
  [java] -library &lt;file&gt; Comma-separated list of libraries. Each 
  [java] library may optionally set its name and 
  [java] versions, if not already set in its 
  [java] manifest, using the following syntax: &lt;file&gt; 
  [java] [@name=&lt;string&gt;@libspecver=&lt;version&gt; 
  [java] @libimplver=&lt;version|string&gt;] 
  [java] -librarydir &lt;dir&gt; Registers all files in specified directory 
  [java] as libraries. 
  [java] -writeInferredDescriptors Write out the descriptors with inferred 
  [java] information including annotations. 
  [java] -manifest &lt;file&gt; Include manifest information from specified 
  [java] manifest file. 
  [java] -clientJarOutputDir &lt;dir&gt; Specifies a directory to put generated 
  [java] client jars. 
  [java] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/j2ee/J2EELogger 
  [java] -keepgenerated Keep the generated .java files. 
  [java] -verbose Compile with verbose output. 
  [java] -classpath &lt;path&gt; Classpath to use. 
  [java] -source &lt;source&gt; Source version. 
  [java] -target &lt;target&gt; Target version. 
  [java] -advanced Print advanced usage options. 
  [java] 
  [java] at weblogic.application.compiler.Appc.runBody(Appc.java:205) 
  [java] at weblogic.utils.compiler.Tool.run(Tool.java:158) 
  [java] at weblogic.utils.compiler.Tool.run(Tool.java:115) 
  [java] at weblogic.application.compiler.Appc.main(Appc.java:262) 
  [java] at weblogic.appc.main(appc.java:14) 
  [java] Caused by: java.lang.ClassNotFoundException: weblogic.j2ee.J2EELogger 
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 
  [java] at java.security.AccessController.doPrivileged(Native Method) 
  [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
  [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248) 
  [java] ... 5 more 
  </code></pre>
  
  <p>Below are ANT script which I am running over it. </p>
  
  <pre><code>&lt;java classname="weblogic.appc" failonerror="true" fork="true" maxmemory="512m"&gt; 
    &lt;arg value="-disableHotCodeGen"/&gt;
    &lt;arg line="-verbose"/&gt;
    &lt;arg line="${weblogic.arg.line.compiler}"/&gt;
    &lt;arg line="-compilerclass com.sun.tools.javac.Main"/&gt;
    &lt;arg line="${weblogic.appc.options}"/&gt;
    &lt;arg value="${compile.dir}/${ejb.domain}-ejbc.jar"/&gt;
    &lt;arg value="${project.dir}/src/java"/&gt;
    &lt;arg value="${compile.dir}/ejb/${ejb.domain}"/&gt;
    &lt;classpath&gt;
      &lt;path refid="weblogic.classpath"/&gt;
      &lt;path refid="project.classpath"/&gt;
      &lt;fileset dir="${java.home}/../lib" includes="tools.jar"/&gt;
    &lt;/classpath&gt;
  &lt;/java&gt; 
  </code></pre>
  
  <p>Even though I am not able to find java.lang.NoClassDefFoundError: weblogic/j2ee/J2EELogger . which jar does supports this? Also I have set PATH and CLASSPATH properly. </p>
  
  <p>Let me know if more information is required from my side. </p>