TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    running .jar

    General Discussion
    2
    2
    107
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • steef van der PoelS
      steef van der Poel
      last edited by

      i am attempting to run a .jar file remotely. I want this to be a server that's online 24/7 or at least that i have the ability to re-activate if it crashes or something similar. it appears not to be running the .jar files. i have this filled in in the command: "C:\Users\steef\Desktop\minecraftServer\minecraft_server.1.21.4.jar"
      runs on foreground
      voice: "minecraft server"
      no voice reply,
      no parameters allowed

      however it won't run. It does run from cmd line, but it doesn't start from this. I'm assuming i missed something.

      V 1 Reply Last reply Reply Quote 0
      • V
        ve1ikan @steef van der Poel
        last edited by ve1ikan

        @steef-van-der-Poel If you want to run a .jar executable, you need to run it using java. This is best done with a batch script like the following file:

        Batch Script (launch.bat)
        cd C:\Users\steef\Desktop\minecraftServer
        java -Xmx1024M -Xms1024M -jar minecraft_server.1.21.4.jar > log.txt 2>&1
        

        Your TriggerCMD command would have to be executing the .bat file

        Something like this would work, the command comes from Minecraft's site:
        https://www.minecraft.net/en-us/download/server

        a66cf93e-d25e-4307-8d9a-ba761eec8e5c-image.png

        1 Reply Last reply Reply Quote 0
        • First post
          Last post