aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
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: 321
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: 5779
    
    7

Which IDE are you using?


JBoss In Action
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 321
Netbeans 6.8

Thanks
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3456
    
  47

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?
A simple program ???
This is from Javaprepare.com
increment operator in while loop