title: Unable to run java annotation processor
body: <p>I am having troubles running my annotation processor from command line. 
  The problem is that it works in Windows environment, but not on my linux installation. </p>
  
  <p>My processor is located in a jar file (meta-validator.jar). I also added entry to META-INF/services/javax.annotation.processing.Processor containing fully qualified name of class of my processor. </p>
  
  <p>I am trying to invoke annotation processor with this command:</p>
  
  <pre><code>javac -cp "./metadata-validator.jar; ... (path to annotations.jar etc.)" -processor xammt.validator.modules.ValidatorModule -proc:only " ... path to sources" 
  </code></pre>
  
  <p>In Windows environment it just works (Windows 7 64bit Pro, JDK 1.7.xx), processor is found and process method is executed. </p>
  
  <p>In my linux environment (Linux Mint 13 32bit -> basically Ubuntu 12.04, Oracle JDK 1.7) I get message:</p>
  
  <pre><code>error: Annotation processor 'xammt.validator.modules.ValidatorModule' not found
  warning: Annotation processing without compilation requested but no processors were found.
  </code></pre>
  
  <p>Also without <code>-processor</code> switch I get the same warning (with other verbose stuff).</p>
  
  <p>What could be causing this problem? I guess that my JDK on linux machine is installed correctly, because I am able to run/compile java applications without any problems. </p>
  
  <p>Thanks for any advice.</p>
  
  <p><strong>EDIT:</strong> I have still no idea why this does not work. Funny thing is, that it works programmatically - I managed to invoke my annotation processor via Java Compiler API without problems (on both platforms), this is also better solution because of debugging. </p>
  
  <p><strong>EDIT2:</strong> 
  Actual command: </p>
  
  <pre><code>javac -cp "./metadata-validator.jar;./lib/common-library.jar;./Annotation source.jar" 
  -processor xammt.validator.modules.ValidatorModule -proc:only "SourceFile.java"
  </code></pre>
  
  <p><strong>SOLVED:</strong>
  check <a href="http://en.wikipedia.org/wiki/Classpath_%28Java%29#OS_specific_notes" rel="nofollow">http://en.wikipedia.org/wiki/Classpath_(Java)#OS_specific_notes</a></p>