I wrote a Server-Client model program in java, and it works great on eclipse. However, when I try to run the client via command line (in Windows 10), I can't write anything to stdin (while I can do it on Eclipse). Why is that?
Here is the client code (not the best one, I know):
When I try to run MyEchoClient with the command (after connecting to a server on port 4000)
(MyEchoClient is at folder named client).
And as I said, I can't write anything to stdin...
Have you tried writing a simple program to get input from the command line to see if that works.
If it does then I suggest you add some print statements to your code, especially in and around the while loop to see if your code is blocking somewhere.
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff: