4
Vote

Error: Could not find or load main class com.microsoft.gittf.client.clc.Main

description

I upgraded a few things on my system (in particular: java and git-for-windows). Then when I try to use "git tf", I get "Error: Could not find or load main class com.microsoft.gittf.client.clc.Main".

I tried reinstalling using the latest release (git-tf-2.0.3.20131219) by unzipping manually and adding the path manually. I then deleted my install and used chocolatey to do the install. In both cases, I get the error message.

Interestingly, "git-tf" from cmd.exe works but not "git tf". Neither "git-tf" nor "git tf" work from within MinGW.

C:\ProgramData\chocolatey\lib\Git-TF\Tools\git-tf-2.0.3.20131219 is in my path.

The following files exist in C:\ProgramData\chocolatey\lib\Git-TF\Tools\git-tf-2.0.3.20131219\lib
com.microsoft.gittf.client.clc-2.0.3.20131219.jar
com.microsoft.gittf.core-2.0.3.20131219.jar
com.microsoft.tfs.sdk-12.0.0.jar
org.eclipse.jgit-3.1.0.201310021548-r.jar

From cmd.exe
C:>git-tf
usage: git-tf [--version] [--help] [--quiet|-q|--verbose] [<command...>]

The git-tf commands are:
help Displays usage information
clone Initializes a git repository from a TFS path
configure Configures an existing git repository to add to TFS
checkin Checks in changes to a TFS folder
fetch Fetch the latest code from TFS into FETCH_HEAD
pull Pulls the latest code from TFS and merge/rebase the changes into master
shelve Shelves the changes to a TFS folder
shelvesets Lists the shelvesets available on the server. Provides a way to delete shelvesets
unshelve Unshelves a shelveset from TFS into the repository

C:>git tf
Error: Could not find or load main class com.microsoft.gittf.client.clc.Main

From MinGW
$ git-tf
Error: Could not find or load main class com.microsoft.gittf.client.clc.Main

$ git tf
Error: Could not find or load main class com.microsoft.gittf.client.clc.Main

comments

deadlydog wrote Nov 7 at 6:27 PM

I can confirm the same thing. "git tf" produces an error

"Unable to find a required JAR: C:\git-tf/lib/com.microsoft.gittf.client.clc-*.jar does not exist"

but using "git-tf" works fine.