• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why my application hangs up while connecting to the database?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have changed the driver from type 1 to type 4 Microsoft jdbc driver for MSSQL 2005 , i have set the classpath in the OS as well as in The IDE
but my application runs fine inside IDE but when i launches the application from the (.jar) file the application hangs up while connecting to the database step
and not even throwing the ClassNotFoundException just the application hangs up
can any one has any clue why this is happening?

I have done the same step in my laptop and the same application runs fine in my laptop.(i.e. it is successfully connecting to the DB)
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naved momin wrote:I have changed the driver from type 1 to type 4 Microsoft jdbc driver for MSSQL 2005 , i have set the classpath in the OS as well as in The IDE
but my application runs fine inside IDE but when i launches the application from the (.jar) file the application hangs up while connecting to the database step
and not even throwing the ClassNotFoundException just the application hangs up
can any one has any clue why this is happening?

I have done the same step in my laptop and the same application runs fine in my laptop.(i.e. it is successfully connecting to the DB)

solved
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35269
383
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While I'm glad it is solved, can you post what the solution was for anyone encountering the same problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic