Results 1 to 3 of 3
  1. #1
    L19htn1n9 is offline Member
    Join Date
    Jul 2011
    Posts
    32
    Rep Power
    0

    Default console input, like crafkbukkit

    I would like to start my jar file through a .bat file on windows. But what i would like to know is how do i recieve input from the coomand line.
    I tried to do it with the System.console(); but that always returned null, I tried to do it with a scanner and System.in; but that also did not work. On both occasions is was not able to type into the command line.

    So if craftbukkit can do this, how can I do this?

  2. #2
    monkeyjr97 is offline Senior Member
    Join Date
    Nov 2012
    Posts
    223
    Rep Power
    1

    Default Re: console input, like crafkbukkit

    post code up, and display error messages then we can go from there. this is so we can see what you have tried etc

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is online now Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,930
    Rep Power
    16

    Default Re: console input, like crafkbukkit

    You already have a thread for this question: Recieving input from command line

    Please go through the url=http://www.java-forums.org/content/113-forum-rules.html]Forum Rules[/url] -- particularly the second paragraph.

    db

    THREAD CLOSED
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. How to get input from Console
    By karma in forum New To Java
    Replies: 8
    Last Post: 08-13-2010, 09:32 PM
  2. who to take user input ,not by console...
    By Shyam Singh in forum New To Java
    Replies: 3
    Last Post: 06-13-2008, 10:09 PM
  3. how to take input from console in jsp
    By veena in forum New To Java
    Replies: 1
    Last Post: 05-06-2008, 04:39 AM
  4. ways to get input from console
    By soni in forum New To Java
    Replies: 2
    Last Post: 05-05-2008, 09:44 PM
  5. How to read input from console
    By Java Tip in forum java.io
    Replies: 0
    Last Post: 04-16-2008, 10:57 PM

Tags for this Thread

Posting Permissions

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