December 19th, 2004, 05:36 AM
running java prog. in eclipse
I was just wondering if some can help me with the eclipse for java program.
Actually i want to send the input to the program from the keyboard at the runtime.
when we use dos prompt to comple java program we use:
then when we run the program we use
and then when we send the input at the runtime we use:
java filename input
I am not able to do the third part in eclipse, i mean i do not know how to do it, can anyone help me.
Harbir Singh Hundal
U get What U pay for.
December 19th, 2004, 03:19 PM
In your eclipse run profile for the app you want to run, select the "Arguments" tab, and put in your arguments in the "program arguments" box. These are added to the run command, so you don't need to put in "java filename", just start with your arguments.
The Nelson-Shepherd cutoff: The point at which you realise someone is an idiot while trying to help them.
\"Well as far as the spelling, I speak fluently both your native languages. Do you even can try spell mine ?\" -- Failed Insult
Is your whole family retarded, or did they just catch it from you?
December 22nd, 2004, 02:31 PM
As you are typing the codes, it will detect syntax error of your codes and compiles it upon saving.
Simple way to start your program. Goto your main/entry class, open it at the top of the ide there's a run shortcut, goto "run as ----> java application" that's it.