Using Netbeans to connect to a database
Hi,
I have Netbeans 5.5 and Microsoft Sql Server 2005 driver downloaded. Now, I put the Microsoft Sql Server 2005 driver in the following path:
C:\SQLDriver\sqljdbc_1.1\enu\sqljdbc.jar
I started the Netbeans and coded lots of lines until I finished a snippet as shown:
...
Connection con = null;
//try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
con = DriverManager
.getConnection(
"jdbc:sqlserver://*****:****;databaseName=****;sendStringParametersAsUnicode=false",
"*****", "*****");
...
The stars are meant to replace the actual information for this forum.
Then I ran the small application and got the error:
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
I have the microsoft driver downloaded, but what do I do to make Netbeans aware of it? I started in a windows application, not a web application. So, I don't want to take a look at an online help for this database connectivity problem.

