File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Best way to transfer and connect to a database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Best way to transfer and connect to a database" Watch "Best way to transfer and connect to a database" New topic
Author

Best way to transfer and connect to a database

Jeff Schuler
Greenhorn

Joined: Apr 17, 2007
Posts: 23
I have a stand alone application that reads a database on my local machine. It's not setup on a server.

How do I move this application along with the database (Java database that comes with Netbeans) to another PC for someone to run effortlessly. The only confusing part to me is with the database. I can include the database file along with the JAR file in a zip file but how would they connect to the database? I have been using Netbeans to connect to the database.

Should I be writing a script to do this or is there a better way?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30913
    
158

Jeff,
Does the other person running the app already have a database? If so, which one?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeff Schuler
Greenhorn

Joined: Apr 17, 2007
Posts: 23
Originally posted by Jeanne Boyarsky:
Jeff,
Does the other person running the app already have a database? If so, which one?


No they don't have the database. I would be giving them the already populated database. The database is the "Derby" database that comes with Netbeans. I'm not sure what's the best way for them to connect to it though.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Best way to transfer and connect to a database