• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unexpected behaviour of Java Console read on batch file.

 
Owais Zahid
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi people. I am working on a small project of java (which i create in Netbeans). The application is working fine in netbeans. Now, when i am creating the batch file (this is the requirement) that starts my application. Things are bit weird. Following is my batch file code :



When i am running this batch file. Console.readLine is not working properly. If i enter only line , the second line enters are well. What i am doing different in this batch file ? Why this problem is occuring in batch file ?

Please help

-Clue Less
 
Martin Vanyavchich
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What appends if you try to just run your app in console? As in:

java -jar My_Jar.jar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic