Search code examples
smartgit

SmartGit randomly stopped working: "Couldn't load main class"


SmartGit worked fine for years. Suddenly won't start at all:

Couldn't load main class

If I uninstall and reinstall, it's still the same. If I move or rename the folders in C:\Users\User\AppData\Roaming\syntevo\SmartGit, it's still the same.

If I run it as administrator it works.

This is SmartGit 6.5.8 in Windows 7 Pro 64-bit.

Asked over a week ago in the official support forum (Yahoo Groups? ಠ_ಠ) but no solution there, so trying here.


Solution

  • As it turned out, the problem was the TEMP/TMP environment variables pointing to C:\Windows\Temp where the normal user hadn't permission, but the administrator had. The smartgit.exe tried to write a small .jar file there which failed and later could not be found.