title: NetBeans perpetually "running..." and will not compile
body: <p>This is my Java code:</p>
  
  <pre><code>import javax.swing.JFrame;
  
  public class Objects {
      public static void main(String[] args) {
  
          JFrame window = new JFrame();
  
          window.setVisible(true);
      }
  }
  </code></pre>
  
  <p>It does not compile when I try to run the file (it simply sits there with "running..." forever). When I remove the final line, it does compile.</p>
  
  <p>Any thoughts?</p>
  
  <p>I am attempting to follow the lesson below:</p>
  
  <p><a href="https://www.youtube.com/watch?v=rT-J-0nGyzU" rel="nofollow noreferrer">https://www.youtube.com/watch?v=rT-J-0nGyzU</a></p>