This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes JDBC/ODBC class not found exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic

JDBC/ODBC class not found exception

keshav reddy

Joined: May 11, 2007
Posts: 13
This is the program:
import java.sql.*;

public class DbConnetIds
public static void main (String [] rags)throws Exception

Connection con = DriverManager.getConnection("jdbc:ids://localhost:12/conn?dsn='oracle_odbc'","bstest02/pin2","pin2");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT aac_package FROM account_t WHERE aac_promo_code LIKE 'voip_slp_transitions_09%'");


I am getting following error during run time:
Exception in thread "main" java.lang.ClassNotFoundException: ids.sql.IDSDriver
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.ClassLoader.loadClassInternal(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at DbConnetIds.main(

Note : I installed IDS server on my my machine,updated the sytem PATH variable.
I am getting similar error with type1 driver.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45421
Please don't ask the same question twice.
I agree. Here's the link:
subject: JDBC/ODBC class not found exception
It's not a secret anymore!