Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse console input?

 
Fran Varin
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know I've seen a solution to this somewhere a while back but, cannot remember where I saw it. The issue is that I'm running a Java based command line program that at some point solicits input from a user. However, when running the project in Eclipse the console does not allow user input making it very difficult to develop/debug a console program. So, I'm looking for a plugin or some kind of Eclipse config option that would allow such a behavior.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fran,
If you go to the console, you can type the input there. What you type in displays in green.
 
lucy coleman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have the same problem..however I dont seem to be able to write anything to the console.
Am i doing something wrong?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lucy,
Welcome to JavaRanch!

What happens when you click in the console? Nothing? Error message?

Also, can you show the code that you wrote to take input?
 
c john
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ensure your console windows is show,it's not do nothing ,you can input something ,the color is green
Best Regards
 
Caliph Herald
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a similar problem. I am running the Jboss IDE 1.5ga on Eclipse 3.1.2.

When i deploy everything is fine. Then the program reaches a certain point and the system's outs on the console stops. nothing else is written to the console. My program uses log4j could this be the problem?

also, when i type in the console i can see it, its green, but it doesn't do anything.

ie. "shutdown -S" or "CTR + C"
will "terminate" shutdown the server PROPERLY?? (JBOSS 3.2.3)
 
Bhaiyaji Patel
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fran Varin wrote:I know I've seen a solution to this somewhere a while back but, cannot remember where I saw it. The issue is that I'm running a Java based command line program that at some point solicits input from a user. However, when running the project in Eclipse the console does not allow user input making it very difficult to develop/debug a console program. So, I'm looking for a plugin or some kind of Eclipse config option that would allow such a behavior.
Yuvarj wrote:

right click on your program and choose "Run" not "Java Application" from "Run as" their you will have a window with many tabs one tab is their "(x)=Arguements" enter whatever console input you want to give.

IT WORKS

HAVE A NICE DAY
 
Amila Prasanna Edirisinghe Amila
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
you can type your input in eclips console and press enter. After cursor move to next line press ctrl+z.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic