wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes args length is 0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "args length is 0" Watch "args length is 0" New topic

args length is 0

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331

I am using an IDE and in the properties-->Run -->Arguments I have added to values Alan and Frederic

When I run my app and I debug over while(i<args.length){ then args.length is 0

Any idea, please?
Peter Johnson

Joined: May 14, 2008
Posts: 5812

Which IDE are you using?

JBoss In Action
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331
Netbeans 6.8

Martin Vajsar

Joined: Aug 22, 2010
Posts: 3606

Netbeans allows you to create different configs in a project, isn't it possible that you're running the app with a config different from the one you've set the arguments in?

Also, just for completeness, you might post the source code.
I agree. Here's the link: http://aspose.com/file-tools
subject: args length is 0
Similar Threads
question 3 on javaprepare
Someone can explain this? Why Output is so strange?
This is from Javaprepare.com
increment operator in while loop
A simple program ???