File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Database Connection in .jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Database Connection in .jar" Watch "Database Connection in .jar" New topic

Database Connection in .jar

Yogesh Gaikwad

Joined: Feb 26, 2005
Posts: 15
If DSN less connection for .mdb file is used, when you create a jar file of it; including
1. class file
3. .mdb
It can't connect to .mdb file included in the jar.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
What driver are you using? I dont know any other then JDBC-ODBC to connect Access DB. You need DSN, indeed.
I agree. Here's the link:
subject: Database Connection in .jar
It's not a secret anymore!