wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes passing in a file from the command line-----seeing a NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

passing in a file from the command line-----seeing a NullPointerException

April Benzine
Greenhorn

Joined: Sep 23, 2004
Posts: 17
Everything compiles fine, but when I run it and enter in the full path name of the text file I get a java.lang.NullPointerException
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
I'll take a deeper peek at the code, but I have some meetings today so I may not get to it until tomorrow. Any other takers while I sit in a conference room?

By the way, it would be easier to track this thread if you posted replies rather than new topics as replies. That way we could scroll to view the code instead of having to have multiple windows open and switch between them.

Thanks!


Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

All these posts seem too similar to be seperate threads. How's about we keep all discussion about your file from command line problem in one spot. This thread seems to be the most active for you, so let's keep discussion going there. I am closing this one.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing in a file from the command line-----seeing a NullPointerException