naginata
naginata

Reputation: 19

java application doesn't run on another computer

hello guys i just want to ask if anyone can point out the problem to me.

so like the title stated, my problem is i clean and build my java application, and my java application has a database that is connected to mysql.

i tried placing the .sql file to the dist folder where the jar file is located, then transferred it to another computer and run it there but it didnt run and said no connection is established between the application and the database.

i hope i can get an answer or a pointers perhaps because im just new in developing java applications.

thanks in advance :)

Upvotes: 1

Views: 669

Answers (2)

Mauran
Mauran

Reputation: 141

"https://dev.mysql.com/downloads/connector/j/5.0.html" i guess u need to add mysql driver properly

Upvotes: 1

Soven K Rout
Soven K Rout

Reputation: 135

First of all check the other computer can connect to your mysql database if yes next confirm that while connecting from your machine you have used proper ip and port number where your mysql database is running in your connection object.

Upvotes: 0

Related Questions