facebook

command line in java

  1. MyEclipse IDE
  2.  > 
  3. Off Topic

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #330005 Reply

    rohit8891
    Member

    how to run programs in java …based on command line arguments ??

    #330006 Reply

    rohit8891
    Member

    @rohit8891 wrote:

    how to run programs in java …based on command line arguments ??

    I mean while doing a program based on command line arguments in any text editor …we do it by compiling the code in command prompt….and then we run it by using “java filename arg1 arg2 agr3….” …so how to do the same in MyEclipse ??

    #330009 Reply

    support-joy
    Member

    Rohit,

    Right click on your java project > Run As > Run Configurations. This will list the Project name and main class under “Main” tab. Next to pass the arguments, you can click on “Arguments” tab and pass the command line arguments. Next Click on [Apply] and [Run].
    It is the same as in Eclipse, refer – http://www.cs.colostate.edu/helpdocs/eclipseCommLineArgs.html

    You should be all set.

    #330012 Reply

    rohit8891
    Member

    Thank you 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: command line in java

You must be logged in to post in the forum log in