Creating New Ms-Access(mdb) file from Java?
843854Jun 17 2002 — edited Jan 20 2015
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 solution.
Yourreply will highly appriciated.
Thanks
Pramod Kadam