File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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
Bookmark "Database Connection in .jar" Watch "Database Connection in .jar" New topic
Author

Database Connection in .jar

Yogesh Gaikwad
Greenhorn

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
2. META-INF
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: http://aspose.com/file-tools
 
subject: Database Connection in .jar