Hello,
I am stuck with an issue. This is on solaris machine. I am trying to read password from the user in order to decrypt some file.
The problem is, the readLine() method does not wait until the user enters password. It returns null and continues. Below i paste the code.
System.out.print(prompt);
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
String password = b.readLine();
return password;
and the solaris OS details
bash-3.00# uname -a
SunOS Ilabsun160 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Blade-100
Any help on this is is greatly appreciated.
Thanks a lot