Results 1 to 2 of 2

Thread: Cmd Prompt

  1. #1
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    CA, USA
    Posts
    264
    Rep Power
    6

    Default Cmd Prompt

    How can I use java to read/write from a normal windows cmd prompt when run from a jar the same way I would a in a console in eclipse?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,656
    Blog Entries
    7
    Rep Power
    21

    Default Re: Cmd Prompt

    You have to run your .jar file with the java.exe command instead of the javaw.exe command. The first version creates a console for your process.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Prompt algorithm
    By eIO in forum New To Java
    Replies: 10
    Last Post: 07-14-2011, 11:34 PM
  2. RE: JOptionPane Prompt
    By bleh in forum New To Java
    Replies: 3
    Last Post: 02-13-2011, 02:54 PM
  3. Replies: 4
    Last Post: 03-25-2010, 04:47 PM
  4. help me!!!! about command prompt..
    By kureikougaiji in forum New To Java
    Replies: 2
    Last Post: 11-13-2008, 06:15 PM
  5. input prompt
    By angelbaby21 in forum New To Java
    Replies: 8
    Last Post: 08-25-2008, 04:22 AM

Posting Permissions

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