Getting "ClassNotFoundException" error when using JTDS on ANDROID for direct access to SQLSERVER?
After 3 hours, RND to find a solution for the same error above. I didn’t get an error in the code, I also have a library called “jtds-1.3.0” that correctly continues debugging the code, still getting the same error again and again.
{
Class.forName("net.sourceforge.jtds.jdbc.Driver");
Connection conn = DriverManager.getConnection(
db_connect_string, db_userid, db_password);
}
I tried an alternative by changing the line
...... Class.forName("net.sourceforge.jtds.jdbc.Driver");
to
...... (new Driver()).getClass();
...... (new Driver())
, jtds-1.3.0, , jtds-1.2.5 ; .
, . -, .