title: What's wrong in my classpath configuration with java 1.7?
body: <p>I'm trying to run a complied class with the command:<code>java SocketTest</code> in current directory.
  But something wrong:</p>
  
  <blockquote>
    <p>Exception in thread "main"
    java.lang.NoClassDefFoundError:SocketTest(wrong
    name:socket/SocketTest)...</p>
  </blockquote>
  
  <p>here is my classpath AND path configration in windows XP:
  <code>JAVA_HOME</code>:</p>
  
  <pre><code>C:\Program Files\Java\jdk1.7.0_25\
  </code></pre>
  
  <p>classpath:</p>
  
  <pre><code>.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
  </code></pre>
  
  <p>path:</p>
  
  <pre><code>%JAVA_HOME%\jre\bin;C:\Program Files\Java\jdk1.7.0_25\bin;C:\Ruby187\bin;H:\Program Files\ARM\ADSv1_2\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%JAVA_HOME%\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN
  </code></pre>
  
  <p>I think the <code>.;</code> has been carefully written,so I'm not sure what's wrong with the java command. Someone help,please!</p>