title: Running java in package from command line
body: <p>I have read the previously posted questions. Some are vague and none solved my problem so I am forced to ask again.</p>
  
  <p>I have two simple classes,</p>
  
  <pre><code>package One;
  import One.Inner.MyFrame;
  public class test
  {
      public static void main(String args[])
      {
          MyFrame f= new MyFrame();
      }
  }
  </code></pre>
  
  <p>And the other class is, </p>
  
  <pre><code>package One.Inner;
  import java.awt.*;
  import javax.swing.*;
  
  public class MyFrame extends JFrame
  {
      public MyFrame()
      {
          setPreferredSize(new Dimension(400,560));
          setVisible(true);
      }
  }
  </code></pre>
  
  <p>I am at base folder "basic" in Windows cmd. I compile using</p>
  
  <pre class="lang-none prettyprint-override"><code>basic&gt; javac *.java -d .
  </code></pre>
  
  <p>A folder and subfolder is created.</p>
  
  <pre class="lang-none prettyprint-override"><code>cd One
  basic\One&gt; java test
  </code></pre>
  
  <p>This generates a big set of errors. Many answers directed to specify the full path which didn't work.
  My classes are in One so specifying One using -cp didn't work either.</p>