File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse console input? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse console input?" Watch "Eclipse console input?" New topic
Author

Eclipse console input?

Fran Varin
Greenhorn

Joined: Aug 08, 2003
Posts: 22
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

Fran,
If you go to the console, you can type the input there. What you type in displays in green.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
lucy coleman
Greenhorn

Joined: Mar 29, 2006
Posts: 1
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

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

Joined: Mar 29, 2006
Posts: 5
ensure your console windows is show,it's not do nothing ,you can input something ,the color is green
Best Regards
Caliph Herald
Greenhorn

Joined: Apr 09, 2004
Posts: 16
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

Joined: Feb 09, 2009
Posts: 1
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

Joined: May 18, 2012
Posts: 1
Hi all
you can type your input in eclips console and press enter. After cursor move to next line press ctrl+z.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse console input?