Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
wood burning stoves
 
subject: Creating New Ms-Aceess(mdb) file from Java?
 
Similar Threads
URGENT :- Hide folder / file using Java
reading a dynamic file...
Is the empty file descriptor a directory?
MIDI
Problem to access the remote file without socket