[I know this question has been asked here and here, but I don't quite understand the answers, and I didn't want to ask questions on old threads.]
Problem:
I have a project that I created in NetBeans (7.01), and I created a database to go with it using Java DB. I would like to have a .exe file that I can run on any computer, so that when someone clicks it, the program runs like it should (establish the connection with the db, run the rest of the Java code).
What I know:
After a little reading, I see that if I didn't have the DB, the executable that I am looking for would really just be the .jar file. I also found that I needed to create an embedded db which in part means that I need to change the URL from jdbc:derby://localhost... to something different (but I'm not sure what something should be. Just a path to the source code files perhaps with the db information?).
Question:
I have a bunch of pieces (not sure if they're all right), but I am not sure how to put them all together. Could someone let me know how to create an embedded DB and send that, and the rest of the program, to an .exe?
Thanks in advance!