title: Java and iMacros
body: <p>I'm trying to follow <a href="http://forum.iopus.com/viewtopic.php?f=6&amp;t=10899" rel="nofollow">this tutorial</a>, regarding using Java with iMacros, but it isn't working. I'm getting an error saying "Could not find or load the main class" even though there is clearly a main class in the sample code on the website. Does anyone know why this might be happening? Thanks!</p>
  
  <p><strong>Update</strong>: Code sample</p>
  
  <pre><code>import com.jacob.activeX.*;
  public class iMacroJACOBtest {
      public static void main(String[] args) {
          // Connect to iMacros Scripting Interface 
          System.out.println("Started."); 
          ActiveXComponent iim = new ActiveXComponent("imacros"); 
          System.out.println("Calling iimInit"); 
          // call iimInit() 
          iim.invoke("iimInit"); 
  
          // call iimPlay() 
          System.out.println("Calling iimPlay"); 
          iim.invoke("iimPlay", "CODE:URL GOTO=google.de"); 
      }
  }
  </code></pre>