This is because the length of the characters you type in the Eclipse console is out of bounds.
Try this and see if it prints.
System.out.print(s); // change this to println(s); and it works! System.out.println(); System.out.flush();
Also, regarding a limit problem, just try this. In the settings → run / debug → console, the Fixed Width Console checkbox will appear. Its maximum limit is 1000 . Try to do this 1000 and run the source code as shown below. You will see that it prints some characters, and for the rest - Internal Error .
System.out.print(s); // change this to println(s); and it works! System.out.flush();
source share