Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My server doesn't appear

 
Mohamad Samy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following multi threaded server for two clients, but noting appear when I run it , I don't know why. it seems in the run Server method have infinite loop

 
Mohamad Samy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found it but also I don't know why it works. I removed the set visible from the class with main method and put it in the constructor so, it is now before the call to the run server method and it worked. any one has an explanation for this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic