I used to use JDBC to connect to SQL server. It worked well.
Recently, I reinstalled my computer(including Jdk1.3 Microsoft SQL
2000 Jdbc driver), and firewall is stalled into the server with SQL
database.
When I run the Java program, it can not work. The error messages are
as follows:
I wonder if the server is configured with firewall, can I still use
the JDBC to access the server?
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver: driver
[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.
jdbc.sqlserver.SQLServerDriver@12e78c]
DriverManager.getConnection
("jdbc:microsoft:sqlserver://128.196.***.***:1433;databaseName=Sun")
trying driver
[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.
jdbc.sqlserver.SQLServerDriver@12e78c]
Exception in thread "main" java.lang.NoClassDefFoundError:
com/microsoft/util/UtilLocalMessages
at com.microsoft.jdbc.base.BaseExceptions.<init>(Unknown
Source)
at com.microsoft.jdbc.base.BaseDriver.setupExceptionHandling
(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at GetData.main(GetData.java:110)