title: how to convert sikuli script in java program
body: <p>I have recorded my test using the GUI desktop application, HAVE SIKULI CLICK A FLASH BUTTON.</p>
  
  <p>Now I would like to use my sikuli script in Java as per below:</p>
  
  <pre><code>import org.sikuli.script.*;
  
  public class TestSikuli {
  
  public static void main(String[] args) {
      Screen s = new Screen();
      try{
  
           s.wait("imgs/ViewPlaylist.png");
            s.click("imgs/ViewPlaylist.png", 0);
  
             s.type(null, "hello world\n", 0);
      }
      catch(FindFailed e){
              e.printStackTrace();
      }
  
  }
  </code></pre>
  
  <p>But the program is not running or displaying any output.</p>
  
  <p>Could u plz look into the code and make my Java/Sikuli script run.</p>
  
  <p>Thanks!</p>