title: Can't use jar library in my java file
body: <p>Sorry for this noobie question, I'm new to Java, and instead of using IDE, i want to using command line to learn what's running under the hood</p>
  <p>I'm following the Getting Started guild on <a href="http://www.miglayout.com" rel="nofollow noreferrer">MigLayout</a></p>
  <pre><code>#MigWindow.java
  
  public class MigWindow {
      public static void main(){
          javax.swing.JPanel panel = new javax.swing.JPanel(new MigLayout());// a simple line to make sure the library jar import correctly 
          
      }
  
  }
  </code></pre>
  <p>and compile with these command:</p>
  <pre><code>javac -cp ./MigLayout.jar MigWindow.java 
  </code></pre>
  <p>and I got a error:</p>
  <pre><code>MigWindow.java:3: cannot find symbol
  symbol  : class MigLayout
  location: class MigWindow
          javax.swing.JPanel panel = new javax.swing.JPanel(new MigLayout());
          
  
                                                        ^
  1 error
  </code></pre>
  <p>It seems the jar library doesn't import correctly, any idea?</p>
  <p>~</p>