readLine strange error in console

Joined
Jan 20, 2010
Messages
1
Reaction score
0
Hi,

I wrote a small Enterprise Application Module in Netbeans (6.7.1).
Among others, this app gets an input from the user. I defined a BufferedReader that gets an InputStreamReader connected to System.in :
Code:
reader = new BufferedReader(new InputStreamReader(System.in));

when I try to perform reader.readLine(), The console doesn't allow any input and refer to the so-called input that was entered as an empty input (although I didn't get any chance to enter any input !!).

When I try to run the module from the IDE, everything's fine.

Any1 ever saw that behaviour ??

Thanks,
Guy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top