1

I am developing console Java app which needs to accept parametres when executing. I am developing in NetBeans, how to add parametres there while I am debugging?

Thanks

2 Answers 2

3

It is very simple. Right-click your project and choose Properties. The Run Category will allow you to set the Arguments. 'foo' is the argument here...

foo is your argument

Sign up to request clarification or add additional context in comments.

Comments

2

The answer is here: http://netbeanside61.blogspot.com/2009/02/using-command-line-arguments-in.html

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.