title: Run Fiji from command line?
body: <ul>
  <li><em>Here is what I want to do:</em></li>
  </ul>
  
  <p>I want to run <a href="http://fiji.sc/Fiji" rel="nofollow noreferrer">Fiji</a> from command-line, to do something like batch image processing. I imagine by typing some command at some console, some batch file can be launched to execute some macro. In this case, the <a href="http://fiji.sc/Fiji" rel="nofollow noreferrer">Fiji</a> GUI will not show up, but the processing will be running behind the scene.</p>
  
  <ul>
  <li><em>Here is what I have done:</em></li>
  </ul>
  
  <p>I simply tried the <a href="http://fiji.sc/wiki/index.php/Headless" rel="nofollow noreferrer">FIji headless</a> , but when I tried <code>./Build.sh misc/headless.jar</code> as the web suggested, the console prompt returns <strong>could not find project for artifactID 'headless';</strong> 
  I also tried <a href="http://www.csg.ci.i.u-tokyo.ac.jp/~chiba/javassist/" rel="nofollow noreferrer">Javassist</a>,pretty much just built it, but have not figure out how to use it.</p>
  
  <ul>
  <li><em>Here is the problem I am encountering:</em></li>
  </ul>
  
  <p>When I type <code>fiji --headless HelloWorldMacro.ijm</code>, nothing happened, where inside the HelloWorldMacro.ijm is <code>printf("Hello world!");</code></p>
  
  <p>I am wondering, how should I run <a href="http://fiji.sc/Fiji" rel="nofollow noreferrer">FIji</a> from command line? Is what I have tried on the right track? If so, what additional work/changes needed to make it work? Thanks a lot.</p>