Hello,
I suspect the beanshell of having the problem when it is run with JDK
1.1.8. Inputs are ignored until the program receives an EOF signal (C-c
C-d), at which point the results of the commands are printed out. So, when
running with JDK 1.1.8 I cannot use the JDE features requiring the
beanshell :<.
No problem with beanshell and JDK 1.2.1.
Does anyone else have the same problem?
Any help will be appreciated.
Sincerely.
David
JDE 2.1.6b2, NT Emacs 20.3.10, NT4 SP4
Gilbert Laycock <[EMAIL PROTECTED]> on 05/25/99 17:40:02
Pour : [EMAIL PROTECTED]
cc : (ccc : David PONCE/FR/Schneider)
Objet : Re: BufferedReader.readLine() and JDE and NTEmacs
Thanks very much to John Sigler and also Casper Gjerris for pointing
out the answer:
jdk 1.1.8 (and earlier) exhibit this problem when used with Emacs,
but not when used in a shell directly.
In summary the two possible solutions are:
* replace code like
BufferedReader in =
new BufferedReader(new InputStreamReader(System.in));
with
BufferedReader in =
new BufferedReader(new InputStreamReader(System.in),1);
to limit the buffer size to 1 (instead of the default of 8k).
* Upgrade to jdk 1.2
I tried both ideas, and they both worked for me.
--
Gilbert Laycock email: [EMAIL PROTECTED]
Maths and Computer Science, http://www.mcs.le.ac.uk/~glaycock
Leicester University phone: (+44) 116 252 3902