CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    4

    [RESOLVED] Running java programs from the command prompt

    Hello:

    I need to run one of my projects from the command prompt. Asides from running it normally like after compiling it like:

    Java package.MainClass

    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.

    Edwin

  2. #2
    Join Date
    Apr 2009
    Posts
    26

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured