Você pode definir o classpath antes compilar:
 
export MSSQL_HOME=/opt/mssql/
export CLASSPATH=$MSSQL_HOME/msbase.jar:$CLASSPATH
export CLASSPATH=$MSSQL_HOME/mssqlserver.jar:$CLASSPATH
export CLASSPATH=$MSSQL_HOME/msutil.jar:$CLASSPATH
 
    Assim no Linux, no Ruindow$ eu acho que é set CLASSPATH; alguma coisa...
----- Original Message -----
Sent: Wednesday, January 02, 2002 1:57 PM
Subject: [java-list] JDBC Driver 4 + MSSQLServer

Olá colegas, tenho tendado a dias tentar fz com que o Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" )
funcione e somente recebo de retorno classnotfound.
 
Um colega me passou a seguinte linha
System.getProperty( "java.lang.path" );
 
Deveria retornar o classpath, segundo ele e não vem nada!!!!!!!!!
 
Já estou pra desistir, via ODBC funciona na boa.
 
Estou tentando no Win2000 ou XP com SQLServer 2000
j2sdk1.4.0 beta
 
Por favor me ajudem
 
Atenciosamente, George Queiroz
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.310 / Virus Database: 171 - Release Date: 19/12/2001

Responder a