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
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "args length is 0" Watch "args length is 0" New topic
Author

args length is 0

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 358
Hi

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?
Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

Which IDE are you using?


JBoss In Action
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 358
Netbeans 6.8

Thanks
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: args length is 0