Hi All,
I am trying to connect my smartgwt application to MsSql server 2012 using jtds driver.
I have downloaded jtds-1.3.1.jar and added it to my application build path (I am using Eclipse Neon.1a Release (4.6.1))
I am trying to initiate the connection as follows:
where DB_CONNECTION_DRIVER = ""net.sourceforge.jtds.jdbc.Driver"
However, this is always generating java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
Appreciate your help.
Shady
I am trying to connect my smartgwt application to MsSql server 2012 using jtds driver.
I have downloaded jtds-1.3.1.jar and added it to my application build path (I am using Eclipse Neon.1a Release (4.6.1))
I am trying to initiate the connection as follows:
Code:
try
{
Class.forName(DB_CONNECTION_DRIVER);
}
catch (ClassNotFoundException e)
{
errorFlag = true;
catchEvent = e.toString();
}
catch (java.lang.Exception __e)
{
errorFlag = true;
catchEvent = __e.toString();
}
However, this is always generating java.lang.ClassNotFoundException: net.sourceforge.jtds.jdbc.Driver
Appreciate your help.
Shady
Comment