aspose file tools
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
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: 804
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. <br />Teach a man to fish, he'll drink all your beer.<br /> <br />Cheers,<br /> <br />Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing in a file from the command line-----seeing a NullPointerException
 
Similar Threads
File constructor
requested resource (first.jsp) not available
Ant error: Make sure you have it in you classpath
Adding a file to a program
JMF