title: How to Run Packaged Java Class
body: <p>Here is the code of my class.</p>
  
  <pre><code>package One;
  public class T{
      public static void main(String[] args){
          System.out.println("Printl");
      }
  
  }
  </code></pre>
  
  <p>I compiled this class using.</p>
  
  <pre><code>javac T.java
  </code></pre>
  
  <p>Then i got <code>T.class</code> but I don't know how I can execute it? 
  I tried this command </p>
  
  <pre><code>java T
  </code></pre>
  
  <p>then I'm getting this error</p>
  
  <blockquote>
    <p>Could not find or load main class T</p>
  </blockquote>
  
  <p>I tried all methods but failed to run. I searched but unable to find the solution.</p>
  
  <p>and some time I'm getting <code>T$1.class</code> and <code>T$2.class</code> what is the meaning of these classes?</p>
  
  <p>I didn't created any Directory. I just create <code>T.java</code> class and then write the above code and trying to compile/run.</p>