-
December 19th, 2004, 06:36 AM
#1
Senior Member
running java prog. in eclipse
Hello guys
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.
like:
when we use dos prompt to comple java program we use:
javac filename.java
then when we run the program we use
java filename
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.
thank you
Harbir Singh Hundal
U get What U pay for.
-
December 19th, 2004, 04:19 PM
#2
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.
Chris Shepherd
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, 03:31 PM
#3
Senior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|