小
小汽车
Unregistered / Unconfirmed
GUEST, unregistred user!
看了很多的帖子,但还是没有办法解决
我在classpath的配置如下;
set classpath = .;D:/j2sdk1.4.0/lib/Tools.jar;D:/j2sdk1.4.0/lib/dt.jar;D:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/msbase.jar;D:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/lib/mssqlserver.jar;D:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/lib/msutil.jar
path = D:/j2sdk1.4.0/bin
我的Microsoft SQL Server 2000 Driver for JDBC也配好了,
我的程序如下:
import java.sql.* ;
public class TestData{
public static void main(String args[])
{
String strsql = "com.microsoft.jdbc.sqlserver.SQLServerDriver" ;
try
{
Class.forName(strsql) ;
System.out.println("Success") ;
}
catch(Exception e)
{
System.out.println("False "+ e.getMessage()) ;
}
}
}
出错老是找不到驱动,
我在classpath的配置如下;
set classpath = .;D:/j2sdk1.4.0/lib/Tools.jar;D:/j2sdk1.4.0/lib/dt.jar;D:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/msbase.jar;D:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/lib/mssqlserver.jar;D:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/lib/msutil.jar
path = D:/j2sdk1.4.0/bin
我的Microsoft SQL Server 2000 Driver for JDBC也配好了,
我的程序如下:
import java.sql.* ;
public class TestData{
public static void main(String args[])
{
String strsql = "com.microsoft.jdbc.sqlserver.SQLServerDriver" ;
try
{
Class.forName(strsql) ;
System.out.println("Success") ;
}
catch(Exception e)
{
System.out.println("False "+ e.getMessage()) ;
}
}
}
出错老是找不到驱动,