aspose 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Database Connection in .jar
 
Similar Threads
Consumer theads no longer exist
ejb3.0
Multiple Entries in sun-ejb-jar.xml for Message Driven Bean?
MS ACCESS DSN less Connection
Adding Database to application