Results 1 to 7 of 7
  1. #1
    smvolt is offline Member
    Join Date
    Dec 2011
    Posts
    6
    Rep Power
    0

    Default Command-Line Arguments

    I just have what I hope is a quick and simple question. I am using the Eclipse Platform, Version 3.3.2, and I can't figure out how to input command line arguments. My understanding is that I should select Run As and then type java, followed by the name of the class, followed by the values I want my program to use. Unfortunately I don't see a place to type the aforementioned- Run As simply gives me one option, to run the program as an application, and then the program proceeds to run without giving me a window to type in. Any insight? I'm sure this is probably a pretty dumb question but I am stumped. Any help is greatly appreciated.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default Re: Command-Line Arguments

    Do you want to provide command line arguments at the run-time or beforehand?

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: Command-Line Arguments

    Try "Run configurations...". It has an "Arguments" pane where you can set program arguments.

  4. #4
    JavaForums's Avatar
    JavaForums is offline Administrator
    Join Date
    Dec 2006
    Posts
    854
    Rep Power
    10

    Default Re: Command-Line Arguments

    Moved to Eclipse forum. Please do not post your questions to 'Learn Java' forums.

  5. #5
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: Command-Line Arguments

    The OP probably found - as I did - that http://www.java-forums.org/eclipse/ silently led to the "Learn Java" forum.

    It still does. See my thread: JDBC forum inaccessible. The problem affects any forum with the same name as one in the "Learn Java" area.

  6. #6
    smvolt is offline Member
    Join Date
    Dec 2011
    Posts
    6
    Rep Power
    0

    Default Re: Command-Line Arguments

    Thanks for all the replies. I found an Open Run Dialog option that allows me to enter arguments so my issue is resolved. pbrockway2 is correct; I tried to create this thread in the Eclipse forum.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. command line arguments
    By shruthichandru in forum New To Java
    Replies: 11
    Last Post: 11-20-2010, 02:02 AM
  2. command line arguments
    By evermore in forum New To Java
    Replies: 5
    Last Post: 03-28-2010, 05:08 AM
  3. Command-Line Arguments
    By mustachMan in forum New To Java
    Replies: 5
    Last Post: 02-26-2010, 03:13 AM
  4. arguments in command-line
    By girlet18 in forum New To Java
    Replies: 2
    Last Post: 01-21-2010, 02:05 PM
  5. Command line arguments help
    By may88 in forum New To Java
    Replies: 8
    Last Post: 12-08-2009, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •