• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

How to pass command line argument through IDE?  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
  • 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: 24203
43
Chrome Eclipse IDE Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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: 64494
225
  • Mark post as helpful
  • send pies
  • 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
  • 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...
 
It will give me the powers of the gods. Not bad for a tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!