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

    Issue with running batch file

    General Discussion
    3
    4
    282
    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.
    • E
      esaltat
      last edited by

      Hello,

      I have a .bat file that runs a .jar file, My batch file is working when I click it as expected but when I test it on TriggerCMD GUI editor I'm getting java not found error.

      error.png

      Here's what my batch file looks like.

      start java -jar %~dp0\AlexaMultipleProjector-1.0-SNAPSHOT.jar pc left
      
      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @esaltat
        last edited by Russ

        @esaltat, if you installed java after running the TRIGGERcmd agent, then the TRIGGERcmd agent's PATH variable wouldn't include the java path yet. If that's the case you could probably fix it by closing and re-opening the TRIGGERcmd agent.

        Another thing you could try is specify the full path to java.exe. You can find it with a command like this:

        where java
        

        Also, I don't think you need start at the beginning of your command, although it shouldn't hurt.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • E
          esaltat
          last edited by

          Restarting the agent did the trick. Thank you!

          RussR 1 Reply Last reply Reply Quote 0
          • RussR
            Russ @esaltat
            last edited by

            @esaltat, awesome.

            Russell VanderMey

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