aspose file tools*
The moose likes JDBC and the fly likes Creating New Ms-Aceess(mdb) file from Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Creating New Ms-Aceess(mdb) file from Java?" Watch "Creating New Ms-Aceess(mdb) file from Java?" New topic
Author

Creating New Ms-Aceess(mdb) file from Java?

PramodKadam
Greenhorn

Joined: Jun 08, 2002
Posts: 5
Hi ,
I am createing New Ms-Acess Database file from java ,
My Code is like this.
java.io.File dbFile = new java.io.File
(fc.getSelectedFile().getPath());
try{
dbFile.createNewFile();
}catch(java.io.IOException e){
}
After executing above code , File is generating with size 0KB
But file is not opened and giving an error unrecognized file format and Hence Driver Manager refuses connection to that file.

Plz, suggest me soluction.
Yourreply will highly appriciated.
Thanks
Pramod Kadam
 
jQuery in Action, 2nd edition
 
subject: Creating New Ms-Aceess(mdb) file from Java?