Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to distribute Java JDBC and Swing desktop application?

843810Jun 13 2009 — edited Jun 13 2009
I have created a Java desktop application whose GUI is built in swing and this application uses mysql database to store/access data. on my desktop if my mysql service is not running and i try to run a program then i get an error that "cannot connect to database".

Now my question is that, if I want to distribute this application to other people then how they will be able to run my application because not everyone has a MySql server and Java installed in their computer.

I have added the jar file of the mysql jdbc connector, but still i get an error if my mysql service is not running. Also when I double click the Jar file of my program (which is located at project/dist/program.jar) I dont see any output, but when I run my program from netbeans then everything works fine.

Thanks for help !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2009
Added on Jun 13 2009
1 comment
210 views