So I’m fairly new to Java (I’m currently a OU student) and I’m pushing myself to learn the spongeAPI. I’ve built my workspace correctly and I have set up a run server from inside IntelliJ on previous versions of spongeforge. Now after doing a fresh gradle build and decompworkspace it refuses to download the server and throws multiple errors when I use the gradle runServer. Here is the console output when I runServer: pastebin
Any advice or pointers in the right direction would be greatly appreaciated!
Thanks all! 
Cannot run program "git"
First thing that comes to mind for me. Usually binaries on Windows have an extension, whereas binaries and shell scripts on Linux and OSX often don’t. Is it possible you are running a command that is intended for Linux or OSX?
That is spot on! I just realized I’m on windows 10 having this error, on my Ubuntu machine I am not. Sounds like this could be the problem. How would I add this extension to my binaries?
I am using Git Bash and Git Desktop on my windows 10 machine and I am using the setupDecompWorkspace in the grade interface, just to let you know. 
Widows uses an environment variable called PATHEXT
to automatically add the extension, so that shouldn’t be a problem. However, it looks like you don’t have git on your path. What does running git status
from the command-line output?
So I’m an idiot and can’t read. I digress.
If you are running the setupDecompWorkspace and other commands inside your Git Bash shell, things should work automagically. That’s how I handle Forge and Spigot stuff, anyways.
2 Likes
Running “git status” on the git bash terminal in my github repo directory (C:\Users\Scot\Desktop\MineCraft\IntelliJ\GitHub Repos) outputs the following:
$ git status
On branch bleeding
Your branch is up-to-date with “origin/bleeding”.
nothing to commit, working directory clean
Should my git path be to my spongeforge directory or to the actual git directory?
Edit: Running git status in the C:\Users\Scot\Desktop\MineCraft\IntelliJ\GitHub Repos\SpongeForge\SpongeCommon\SpongeAPI directory returns this:
$ git status
HEAD detached at 9b3b44a
nothing to commit, working directory clean
Sounds to me like you’re all good. If git status
is running and not giving you the same old Cannot run program "git"
, then that means Git is in fact working fine. Just remember from here out, whenever you’re doing something that needs Git, you should be utilizing your Git Shell.
1 Like
Ya so I just said screw Windows 10 for coding at the moment, I couldn’t get it to properly load a number of things. Everything works flawlessly in Ubuntu 15.10. I’m sure people are using Windows 10 without issue, I’m just going to blame my case on all the media servers I run to VPNs and devices in my house. Seemed like git couldn’t pull all the data without disconnecting half way through, I could never download the full repositories.