title: Unable to compile and run HelloWorld in jdk1.7
body: <p>I have installed <code>jdk1.7</code> at my <code>e:\</code>. i have already <code>jdk1.6</code> and <code>1.5</code> in my machine at <code>c:\</code>.</p>
  
  <p>Environment vairable,</p>
  
  <pre><code>path=c:\jdk1.6\bin;e:\jdk1.7\bin;.;
  classpath=c:\jdk1.6\lib;e:\jdk1.7\lib;.;
  </code></pre>
  
  <p>in cmd prompt,</p>
  
  <pre><code>E:\&gt;java -version
  java version “1.7.0″
  Java(TM) SE Runtime Environment (build 1.7.0-b147)
  Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
  
  E:\&gt;set path=e:\javasdk1.7\bin;.;
  
  E:\&gt;javac
  Error: Could not find or load main class com.sun.tools.javac.Main
  </code></pre>
  
  <p>Not able to compile a <code>Hello7.java</code> which is at <code>e:\</code></p>
  
  <p>enter code here</p>
  
  <pre><code>import java.io.*;
  class Hello7 {
     public static void main(String... args) {
        String color="red";
        switch (color) {   
        case "red":   
           System.out.println("Color is Red");   
           break;   
        case "green":   
           System.out.println("Color is Green");   
           break;   
        default:   
           System.out.println("Color not found");   
        }  
     }
  }
  </code></pre>
  
  <hr>
  
  <p>No Tom, Still am getting error while trying to compile. Pleae find the below status.</p>
  
  <pre><code>E:\&gt;dir j*
   Volume in drive E is Keane
    Volume Serial Number is BA91-B3F6
  
   Directory of E:\
  
   10/04/2010  05:25 PM    &lt;DIR&gt;          j2ee1.4.tutorials
   08/18/2011  02:52 PM    &lt;DIR&gt;          Jar Files
   08/02/2011  11:33 AM    &lt;DIR&gt;          javasdk1.7
   07/01/2011  04:39 PM    &lt;DIR&gt;          jboss
   10/04/2010  05:25 PM    &lt;DIR&gt;          jsf
   10/04/2010  05:25 PM    &lt;DIR&gt;          junit
             0 File(s)              0 bytes
             6 Dir(s)  33,454,637,056 bytes free
  
    E:\&gt;set path=e:\javasdk1.7\bin;.;
  
    E:\&gt;set classpath=e:\javasdk1.7\lib;.;
  
    E:\&gt;javac
    Error: Could not find or load main class com.sun.tools.javac.Main
  </code></pre>