简体   繁体   中英

Git-tf unable to find required JAR

I'm trying to setup git-tf bridge on my windows work station. When I try to execute one of the commands it always shows message:

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

The problem is that slash changes in the middle of the path from \\ is changed to /.

Thanks in advance.

I'm assuming you use the Git Bash.

You'll need to edit your git-tf bash script and change the line

MINGW32_NT*)

to

MINGW*)

because for you, uname -s will probably spit out “MINGW64_NT”.

Try using "git-tf" instead of "git tf". That got me past the issue on Windows (using PowerShell or just the vanilla command prompt).

For me the case is actually that the jar file is not available.

Check first if a chocolatey installation would bring that jar in the installed path, as in this issue .

choco install git-tf 
# or
choco upgrade git-tf -version 2.0.3.20131219

You should see:

Contents of Git-TF\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

The official archive git-tf-2.0.3.20131219.zip has the expected jars.

If the script exists, it warns that it could not be found, you should try using "git-tf" instead of "git tf". I worked well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM