Oracle Weblogic Server (MOSC)

MOSC Banner

DriverManager.getConnection Exception Data source name not found and no default driver specified

edited Dec 10, 2014 10:10AM in Oracle Weblogic Server (MOSC) 1 commentAnswered

Hi,

In Windows 7 environment,

I created an application (64 bit) to connect to MS 2010 ACCESS DB (64 bit) with DriverManager.getConnection(dbConnectionStr, "", "").

I use 2013 MS ACCESS to create this XX.accdb database file.

I use JRE 1.6 compiler and JRE System library 1.6.0_45 (64 bit) to execute the program.

I didn't use Control Panel to do any setup for Data Sources (ODBC).

(I don't want to do any special setup for this application because if I do I then need to change users' machine)

I got the following error when I execute the program at this point: DriverManager.getConnection(dbConnectionStr, "", ""

java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center