Skip to Main Content

Java Database Connectivity (JDBC)

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!

java.sql.SQLException: The connection attempt failed.

843859Mar 7 2007
Hello,

I've searched through some archives and tried some of those solutions that seems to be related but none seems to work. When I run my program in netbeans or the jar file in my dist folder it runs fine. Then when I run the jar file in a different computer I get this error: java.sql.SQLException: The connection attempt failed. The database is postgresql. I've also added a certificate and imported to the cacerts file in the jdk and jre folders on the server side. Anyone have a clue as to why I'm getting this error. Is it the certifcate?

Thanks.

vyang
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2007
Added on Mar 7 2007
0 comments
359 views