• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to release java program using jdbc

 
morteza mory
Greenhorn
Posts: 1
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i write a program which uses jdbc, when i make jar file from that,it doesn't work and even i can't run it in other computers.
the error is: java.net.connectException: error to connecting to server localhost on port 1527 with message connection refused:connect
i will be glad if you help me.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you have a database on your computer, but not on the other computers. One approach is to install a database on those other computers. Another is to host the database somewhere else. (But then you really should use a web services rather than raw JDBC to contact it)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic