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
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Creating New Ms-Aceess(mdb) file from Java?
 
Similar Threads
MIDI
Problem to access the remote file without socket
Is the empty file descriptor a directory?
URGENT :- Hide folder / file using Java
reading a dynamic file...