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

    Issue with running batch file

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 951 Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          esaltat
          last edited by

          Restarting the agent did the trick. Thank you!

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

            @esaltat, awesome.

            Russell VanderMey

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post