April 18th, 2009 09:17 PM
[RESOLVED] Running java programs from the command prompt
I need to run one of my projects from the command prompt. Asides from running it normally like after compiling it like:
I need to run it like:
Java package.MainClass fileName.txt
What does that means? I mean, what can I do with that .txt? I'm supposed to use that text to recover data, but I just don't understand how can I do that.
The last one is:
Java package.MainClass < fileName.txt
That one is easy, the only thing it does is read the command from that fileName instead of the keyboard. Still I don't understand what to do with the second one...
I need help, please. Link to where I can read about it would be very helpful, or any examples, whatever... any help is appreciated.
April 18th, 2009 11:27 PM
Re: Running java programs from the command prompt
well it depends what your program is trying to do with that text file.
post your code up
Click Here to Expand Forum to Full Width