title: Robot Class - Unhandled exception type AWTException
body: <p>So, I was was tinkering around with the Robot Class in Java. I am a very new Java Programmer, but I have deeper roots in other languages. Here's my code:</p>
  
  <pre><code>import java.awt.*;
  
  public class Main {
  
      public static void main(String[] args) {
          Robot bot = new Robot();
          bot.mouseMove(50, 50);  
      }
  }
  </code></pre>
  
  <p>All I was trying to do was see if I can control the mouse, as in, moving it to 50, 50. However, in Eclipse it puts a red X next to </p>
  
  <pre><code>Robot bot = new Robot();
  </code></pre>
  
  <p>..saying.. </p>
  
  <pre><code>Unhandled exception type AWTException
  </code></pre>
  
  <p>And won't let me run it. Can anyone help me figure out why this is happening?</p>