java - My Jar application(myapplication.jar + Mysql connector) doesnt work on other computer -
guy developt simple gui application access mysql database program, created jar file, everthings works great on computer , application access database greatly, problem when run myapplication.jar on others computers, gui (application) showed can't access database.
my questions are:
- did have copy "c:\program files\mysql\mysql server 6.0\data\mydatabase\" files inside applications folder ?
i've create manifest file link myapplication.jar mysql-connector-java-5.1.17.jar , plus put mysql-connector-java-5.1.17.jar in same folder, seem application can't access database on others computers .
the first thing need know how mysql works. client , server, local in case.
when bring application other computer, you'll want install mysql server on machine , set same tables , data(via mysql backup , restore).
i become more acquainted intermediate java programming , other databases such db4) before creating business-critical applications.
Comments
Post a Comment