title: im4java FileNotFoundException
body: <p>When I use ImageMagick+im4java in eclipse, I always has this error:</p>
  
  <pre><code>Exception in thread "main" org.im4java.core.CommandException: java.io.FileNotFoundException: convert
      at org.im4java.core.ImageCommand.run(ImageCommand.java:219)
      at imagetools.ImageTools.resizeImage(ImageTools.java:71)
      at imagetools.ImageTools.main(ImageTools.java:92)
  Caused by: java.io.FileNotFoundException: convert
      at org.im4java.process.ProcessStarter.searchForCmd(ProcessStarter.java:661)
      at org.im4java.process.ProcessStarter.startProcess(ProcessStarter.java:403)
      at org.im4java.process.ProcessStarter.run(ProcessStarter.java:312)
      at org.im4java.core.ImageCommand.run(ImageCommand.java:215)
  </code></pre>
  
  <p>And I am sure that the itself ImageMagick works well on my computer(Mac OSX 10.10.1).
  Here is my code: </p>
  
  <pre><code>package imagetools;
  
  
  import org.im4java.process.ProcessStarter;
  
  import org.im4java.core.ConvertCmd;
  import org.im4java.core.IMOperation;
  
  
  public class ImageTools {       
  public static void resizeImage(int width, int height, String srcPath, String newPath) throws Exception {
          IMOperation op = new IMOperation();
          op.addImage(srcPath);       
          op.resize(width, height);
          op.addImage(newPath);        
          ConvertCmd convert = new ConvertCmd();               
          convert.run(op);
      }   
  public static void main(String[] args) throws Exception{
          String src =  "/Users/lvxinyun/Downloads/im4java-1.4.0/images.src/rose1.jpg"; 
          String n = "/Users/lvxinyun/Downloads/im4java-1.4.0/images.src/rose1_n.jpg";
          ProcessStarter.setGlobalSearchPath("/Users/lvxinyun/Downloads/ImageMagick-6.9.0-5");
          resizeImage(600,800,src,n);
      }
  }
  </code></pre>