Meaningless Drivel is fun!*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating New Ms-Aceess(mdb) file from Java?