git error

Discussion in 'Spigot Help' started by bigE-Dacker, May 24, 2015.

  1. Hey guys whenever I type a command into the git console it says
    sh.exe": java: command not found
    can someone help. what is my sh.exe also
  2. [email protected] /c/spigot
    $ JAVA_HOME="C:\Program Files\Java\jdk1.7.0_79" java -jar BuildTools.jar --rev
    sh.exe": java: command not found
  3. Do you have Java bin folder in PATH variable?
  4. ill check if its in the path
  5. i added the bin to the path and it did not help. also i did the command "git help" to see commands and i tried using a command like"status". same thing though.

    [email protected] /c/spigot
    $ status
    sh.exe": status: command not found

    its like it is not recognizing its own commands. is there a problem with my path or whatever the sh.exe is?
  6. Can you run java in default Windows terminal? (not in sh.exe)
  7. Check if Java is in your build path by typing the following command in a terminal window.

    "java -version"

    If it doesn't work, Just look up a tutorial on YouTube on how to add Java to your build path.
  8. this is a noob question but what is my terminal window? is it command prompt
  9. Yes, if you're running windows / mac.

    If you're running Linux / Any other distribution, It's terminal.

    To open a terminal in windows, Hold CTRL + T ( or is that only for Ubuntu? o_O )

    Go to start menu > Type in cmd > Enter
  10. this is what i get if i type it into cmd.exe

    C:\Users\Evan>java -version
    Picked up _JAVA_OPTIONS:
    java version "1.7.0_79"
    Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
  11. how can i test that
  12. Alright, Reinstall Git.
    Make sure you have a JDK environment installed, they can be picked up here for 7, or here for 8.

    I just explained it to you.
  13. will uninstall and reinstall git. I hope it works.

    This is the correct place to get git right
  14. should i use default installation settings?
  15. Yes, then configure it to your likings when confirmed working.
  16. same problem
    [email protected] /c/spigot
    $ JAVA_HOME="C:\Program Files\Java\jdk1.7.0_79\bin" java -jar BuildTools.jar --
    rev 1.8.5
    sh.exe": java: command not found
  17. i tried adjusting the command too. could you explain what the sh.exe is?
    should i reinstall java and java dk? also is there a way to check the path git is using?
  18. Run following command and post output here:
    Code (Text):
    printenv PATH
  19. i updated and made the path the folder its in. that seemed t work
  20. Note when editing path: Any terminals left open are required to restart to take effect from the modified path.