• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot get Connection when running app as jar file  RSS feed

 
Martyn Clark
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a small application that is using sockets and all works well when I run the client from the ide but, when I compile and deploy as a jar file all works up to the point of getting the connection and just hangs, any ideas?

Martyn
 
Rob Spoor
Sheriff
Posts: 20895
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you see on the console when you run the JAR file using "java -jar <jarfile>"?
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My prediction is that Martyn will see a stack trace indicating that his JDBC driver's jar is not in the classpath.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!