Http Client CLASSPATH [RESOLVIDO]

Olá galera,

Estou começando a usar o httpclient, usei o 3.1.

Mandei rodar no eclipse e deu tudo certo, mas quando fui rodar via cmd ai veio o problema…

Adicionei os arquivos .jar necessários no CLASSPATH e deu essa exception

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/ht
tpclient/HttpMethod
Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpM
ethod
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: teste.  Program will exit.

Meu classpath:

CLASSPATH = .;C:\Arquivos de programas\Java\jdk1.6.0_15\lib;C:\commons-codec-1.3.jar;C:\commons-httpclient-3.1.jar;C:\commons-logging-1.1.1.jar;

O estranho é que a Classe “org.apache.commons.httpclient.HttpMethod” está no jar commons-httpclient-3.1.jar que está no CLASSPATH

Alguém sabe o que pode ser??

[]´s

Segue meu código

[code]
import java.io.IOException;
import java.net.InetAddress;

import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.GetMethod;

public class Teste {
public static void main(String[] args) throws IOException {

	InetAddress ad = InetAddress.getLocalHost();
	
	String resp = null;
	//adicionando o ip
	HostConfiguration hostConfiguration = new HostConfiguration();
	hostConfiguration.setLocalAddress(ad);
	//set ip
	HttpClient client = new HttpClient();
	client.setHostConfiguration(hostConfiguration);
	GetMethod method = new  GetMethod("http://www.uol.com.br/");
	try {
		client.executeMethod(method);
		resp = method.getResponseBodyAsString();
	
	} catch (Exception e) {

	}
	System.out.println("Resposta "+resp);
}

}[/code]

Linux = java -cp .:commons-logging-1.1.1.jar:commons-codec-1.3.jar:commons-httpclient-3.1.jar teste
Windows = java -cp .;commons-logging-1.1.1.jar;commons-codec-1.3.jar;commons-httpclient-3.1.jar teste

se voce tenta setar o jar nas variaveis de ambiente na mão da merda ai tem
que dar o comando -cp com os jars

[]´s