Unable to run scribts/jars/exe files from plugin

Discussion in 'Plugin Development' started by EvilWitchdoctor, Apr 5, 2016.

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


    Not sure if this was intended in bukkit, but when I do something like this:
    Runtime.getRuntime().exec("cmd /c path/to/second/server/run.bat");

    Nothing happens.
    Note that the goal of the above code is to start a second server via. a plugin installed on this server and using a .batch file.
  2. Offline


    Why would you need to execute a batch file? What is the executable you want to activate? If you're trying to activate a plugin, all plugins should be activated when the server starts up.
  3. Offline


    Not trying to active plugins, in fact I am trying to activate a second server every time the first one is started (I already figured out how to close it when the first server closes)
  4. Offline


    Why do you need 2 servers?
  5. Offline


    mine-care likes this.
  6. Offline


    Or a lame way to generate worlds asynchronously.
  7. Offline


    Perhaps instead of going off on tangents, you could help the OP?

    Sent from my SM-T710 using Tapatalk
  8. Offline


    We are currently doing that, we need to know why he wants to do that, so we can think of an easier way.
  9. Offline


    @MasterDoctor01 as a general rule of thumb we should not do that. As you know in programming missing information about the problem can make it very broad. So if everyone explains their way of solving the potential problem based on their interpretation then we will end up having a massive thread with tons of different opinions that is not really going to help the OP. So we need to narrow it down, and once there are a hand full of possible solutions propose one / two / ... of them. Then, members may argue with eachother's solution and find the best.
Thread Status:
Not open for further replies.

Share This Page