Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes Unable to connect to server inside swing app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Unable to connect to server inside swing app" Watch "Unable to connect to server inside swing app" New topic
Author

Unable to connect to server inside swing app

DN Debed
Greenhorn

Joined: Nov 03, 2008
Posts: 10
Hi, I would like to ask for your help with my problem.

The code below works fine if I run the class itself in netbeans.

But in my swing application, calling the createTestFolder method using a command button gives this exception.



This is my class used to connect to the sql server.



thanks!
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Google com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed., seems like a problem with the remote db server.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to connect to server inside swing app
 
Similar Threads
Java-DB2
please I urgently need help
no suitable driver found..
Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
Hibernate Dialect for MS Access