Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

smartgit

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.

like image 454
endolith Avatar asked Jun 02 '15 04:06

endolith


1 Answers

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.

like image 68
Thomas S. Avatar answered Dec 27 '22 12:12

Thomas S.