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
[email protected] /c/spigot $ JAVA_HOME="C:\Program Files\Java\jdk1.7.0_79" java -jar BuildTools.jar --rev 1.8.5 sh.exe": java: command not found
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?
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.
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? ) Go to start menu > Type in cmd > Enter
this is what i get if i type it into cmd.exe C:\Users\Evan>java -version Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true 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)
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.
will uninstall and reinstall git. I hope it works. This is the correct place to get git right https://git-scm.com/download/win?
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
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?
Note when editing path: Any terminals left open are required to restart to take effect from the modified path.