A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
IDEs, Version Control and other tools
using the String args at main
Joined: Dec 26, 2008
Mar 11, 2009 04:53:53
i know that in order to use the args, i can just type the following on my terminal/cmd
myapp parameter1 parameter2
but how do i utilize the args if i am running on eclipse? how do i pass parameter into args?
thanks and regards
Joined: Oct 13, 2005
Mar 11, 2009 04:56:45
Transferring to the IDEs forum.
Not quite sure, but it is something similar to this:
Right-click the name of the class (on the left pane) with the main method in.
Click "open run dialog"
Open the "arguments" tab
Write the command-line arguments in the "command arguments" box.
Joined: Nov 24, 2005
Mar 11, 2009 05:02:25
In the menu : Run/Run Configurations...
Java Application, right-click, New
In the Arguments tab, you can set the parameters in Program Arguments.
All roads lead to JavaRanch
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: using the String args at main
how to take a series of string from command line?
Use of constructor in abstract class?
overloaded func, both accept same no and type of parameters
Thread question from KB
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013