Win a copy of Murach's Python Programming this week in the Jython/Python forum!
    Bookmark Topic Watch Topic
  • New Topic

My try block not running and no sign of errors  RSS feed

 
Heg Lachher
Greenhorn
Posts: 28
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
The code inside this try block is not working and want to solve the problem.
Here is the code:
 
Tony Docherty
Bartender
Posts: 3198
78
  • Likes 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
Are you sure it's not running, it works on my machine? Have you tried putting a print out just before calling ServerSocket accept() to show if it is executing.
I suspect nothing is trying to make a connection so the accept method is blocking.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post, essentially the same question, multiple times. Let us continue the discussion in your original topic here http://www.coderanch.com/t/622344/GUI/java/Odd-JFrame-Behavior
Locking this topic. (Sorry Tony)
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!