Bukkit process displaying >

Discussion in 'Plugin Development' started by Minnymin3, Jun 25, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Minnymin3

    Im working on a project that starts the bukkit jar with:
    Code:java
    1. Runtime.getRuntime().exec(
    2. "java -Xmx1G -Xms1G -jar bukkit/craftbukkit.jar -o true");

    But when I embed the console:
    Code:java
    1. String line;
    2.  
    3. new InputStreamReader(Main.proc.getInputStream()) );
    4. while ((line = in.readLine()) != null) {
    5. System.out.println(line);
    6. }
    7. in.close();[B][/B]

    All the console says is > when it should be something like 17:09:58 [INFO] Starting minecraft server version 1.5.2

    Anyone got any ideas...?

    Nevermind... For some reason bukkit uses the error stream for its logger...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  2. Offline

    ShadowDog007

    You could just read the end of server.log?

    Minecraft* And it uses the output stream to store console commands which are being typed out. > appears whenever a new line is output in the err stream.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  3. Offline

    Minnymin3

    Ah ok. Why does it use the err stream?
     
  4. Offline

    ShadowDog007

    I presume they had a reason for doing so, but I haven't really made any console applications, so I wouldn't know.
     
Thread Status:
Not open for further replies.

Share This Page