• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to pass command line argument through IDE?

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How do we pass command line argument, when we are executing through IDE.
Currently I'm using NaviCoder IDE.

Thanks in advance,
 
Ranch Hand
Posts: 61
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rakesh Ss wrote:Hi,

How do we pass command line argument, when we are executing through IDE.
Currently I'm using NaviCoder IDE.

Thanks in advance,



Haven't tried NaviCoder. I use Eclipse instead... There is an option of Run configurations under Run menu. It also appears under Run As of the menu that appears on right-click of the main class.
Under Run Configurations go to tab arguments. here you can specify the command line arguments for your program.

See if there is anything called Run Configurations in NaviCoder as well.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In general, IDEs have some kind of a dialog box that lets you specify information about how to run your program. The dialog will let you set command-line arguments along with JVM arguments, environment variables, etc.

I went and Googled this "NaviCoder" -- thanks for the laugh, by the way, more on this later -- and it looks like this "Setting Run Profile Command" panel may let you add arguments, although I can't tell for sure:

http://www.navicoder.com/manual/online_manual/ide/java/RunProComApp.html

Anyway, despite that website's claim that NaviCoder is powerful and popular and wonderful, I've never heard of it, and the online manual makes it look positively dreadful. There are many better choices available -- don't torture yourself trying to make this toy IDE work if it's preventing you from doing something as simple as adding command-line arguments to a program. Eclipse, NetBeans, or for beginners, BlueJ (all these are easily Google-able) are industry standards and are all fine pieces of software.



 
Marshal
Posts: 80962
526
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you really are a beginner, don't use an IDE at all.

I think this discussion would sit better on our IDEs forum: moving.
 
Anupam Jain
Ranch Hand
Posts: 61
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ernest Friedman-Hill wrote:
Anyway, despite that website's claim that NaviCoder is powerful and popular and wonderful, I've never heard of it, and the online manual makes it look positively dreadful. There are many better choices available -- don't torture yourself trying to make this toy IDE work if it's preventing you from doing something as simple as adding command-line arguments to a program. Eclipse, NetBeans, or for beginners, BlueJ (all these are easily Google-able) are industry standards and are all fine pieces of software.



Yup, I didn't heard of this NaviCoder as well.
Eclipse is more than enough for me...
 
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic