Skip to Content
0
Former Member
Jul 17, 2008 at 03:17 PM

Issue regarding JDBC drivers JARs

15 Views

Hi all,

I have created a J2EE application within NW Dev Studio. Now, I have created an Enterprice project as well as a Web Project, the first one being linked ot the other.

Now I have to add the following JARs to the Web Project, in the Java Build Path, for the JDBC connection to work:

>> msbase.jar, mssqlserver.jar and msutil.jar.

I am using the following code to create a DB connection.

>> Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");

>> connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://dbname:1555","user","pass");

Everytime I build and run my application, these JAR files disappear. Is there a way to create a reference to these inside my application? (through DC, Reference?)

Thanks.

Michael