File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating New Ms-Aceess(mdb) file from Java?
 
Similar Threads
Problem to access the remote file without socket
reading a dynamic file...
Is the empty file descriptor a directory?
URGENT :- Hide folder / file using Java
MIDI