• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
PramodKadam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic