Problem While Setting up JAVA fro the 1st time on Windows 7
<p>I installed the J2SE 6.o version.  Now I'm having a problem getting it to work right.</p>

<pre><code>&gt; C:\java\jdk1.6.0_25\bin
</code></pre>

<p>This is the path of the bin file, and I put this in the Path tab.  In the environment settings.</p>

<p>What are the next steps that I have to take to run <code>.java</code> files from the command prompt?</p>

<p>Do I have to put something in the class-path tab too?</p>

<p>Let me elaborate my problem:</p>

<p>If I run and compile the below mentioned file called <code>Shirt.java</code> it works fine.</p>

<pre><code>public class Shirt{
public int ShirtID=0;
public String description="-description required-";
public char colorCode='U';
public double price=0.0;
public int quantityInStock=0;


public void displayShirtInformation(){
    System.out.println("ShirtId:"+ShirtID);
        System.out.println("ShirtDescription"+description);
        System.out.println("Color Code:"+colorCode);
        System.out.println("Shirt Price"+price);
        System.out.println("Quantity In Stock"+quantityInStock);
    }
}
</code></pre>

<p>But if I run another file that calls the previous file, then problems crop up.
The file that calls the previous file is as follows.</p>

<pre><code>public class ShirtTest {

  public static void main (String args[]) {

  Shirt myShirt = new Shirt();

  myShirt.displayShirtInformation();

  } 
}
</code></pre>

<p>When I try to execute the second file, there are a few errors that crop up and no compilation takes place.  I believe it  has something to do with some problem with the environment variable Path declaration.</p>
