【问题标题】:Git-tf commands throwing Exception in thread "main" java.lang.UnsatisfiedLinkErrorGit-tf 命令在线程“main”java.lang.UnsatisfiedLinkError 中抛出异常
【发布时间】:2012-11-12 23:31:52
【问题描述】:

我注意到在最近升级到山狮后,所有 git tf 命令(例如 git tf checkin)都会引发以下预期:

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.microsoft.tfs.jni.internal.console.NativeConsole.nativeEnableEcho()Z
at com.microsoft.tfs.jni.internal.console.NativeConsole.nativeEnableEcho(Native Method)
at com.microsoft.tfs.jni.internal.console.NativeConsole.enableEcho(NativeConsole.java:56)
at com.microsoft.tfs.jni.ConsoleUtils.enableEcho(ConsoleUtils.java:47)
at com.microsoft.gittf.client.clc.commands.framework.Command.prompt(Command.java:464)
at com.microsoft.gittf.client.clc.commands.framework.Command.promptForPassword(Command.java:436)
at com.microsoft.gittf.client.clc.commands.framework.Command.promptForCredentials(Command.java:424)
at com.microsoft.gittf.client.clc.commands.framework.Command.getDefaultCredentials(Command.java:288)
at com.microsoft.gittf.client.clc.commands.framework.Command.getCredentials(Command.java:306)
at com.microsoft.gittf.client.clc.commands.framework.Command.getConnection(Command.java:324)
at com.microsoft.gittf.client.clc.commands.framework.Command.getVersionControlClient(Command.java:474)
at com.microsoft.gittf.client.clc.commands.CheckinCommand.run(CheckinCommand.java:193)
at com.microsoft.gittf.client.clc.Main.main(Main.java:328)

我已尝试更新 git、git-tf 和 java 运行时,但我仍然看到此错误

【问题讨论】:

    标签: git tfs git-tf


    【解决方案1】:

    更新:2013 年 2 月 4 日

    这个项目的开发者已经添加了一个更新来修复这个问题,并为更新版本的 osx 10.7+ 添加了对 java 7 的支持,可以从这里下载更新:http://www.microsoft.com/en-us/download/details.aspx?id=30474

    这是 osx 10.8.2 的一个已知问题,与此版本附带的最新版 java 1.7.0 相关。 git-tf 项目团队建议的解决方法是在为 git-tf 执行命令时使用更高版本的 java 1.6.0。

    【讨论】:

      猜你喜欢
      • 2020-12-18
      • 1970-01-01
      • 1970-01-01
      • 2017-11-25
      • 1970-01-01
      • 2023-01-18
      • 2012-10-16
      • 2011-12-05
      相关资源
      最近更新 更多