• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

args length is 0

 
Isaac Ferguson
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which IDE are you using?
 
Isaac Ferguson
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Netbeans 6.8

Thanks
 
Martin Vajsar
Sheriff
Pie
Posts: 3751
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic