Help with "Cannot run program 'sh': error=0, Failed to exec spawn helper"

I experienced the same a year ago, and this fixed it for me: executeCommandLine fails with Java exception "Failed to exec spawn helper" - #2 by seime