Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within IDEs and Version Control
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Other IDEs, Version Control
using the String args[] at main
bryan lim
Ranch Hand
Posts: 140
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi all,
i know that in order to use the args[], i can just type the following on my terminal/cmd
java 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
bryan
Campbell Ritchie
Marshal
Posts: 79177
377
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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 "run"
Click "open run dialog"
Open the "arguments" tab
Write the command-line arguments in the "command arguments" box.
Click "run"
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In the menu : Run/Run Configurations...
Java
Application, right-click, New
In the Arguments tab, you can set the parameters in Program Arguments.
run_args.JPG
[My Blog]
All roads lead to JavaRanch
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to take a series of string from command line?
Use of constructor in abstract class?
Exceptions
Thread question from KB
overloaded func, both accept same no and type of parameters
More...