24

当我尝试将 SVN 连接到 Eclipse 时,出现以下错误:知道如何解决吗?

Failed to load JavaHL Library.
These are the errors that were encountered:
no libapr-1 in java.library.path
no libapriconv-1 in java.library.path
C:\Program Files (x86)\Subversion\bin\libeay32.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
C:\Program Files (x86)\Subversion\bin\ssleay32.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
no libaprutil-1 in java.library.path
C:\Program Files (x86)\TortoiseSVN\bin\libsasl.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
no libsvn_subr-1 in java.library.path
no libsvn_delta-1 in java.library.path
no libsvn_diff-1 in java.library.path
no libsvn_wc-1 in java.library.path
no libsvn_fs-1 in java.library.path
no libsvn_repos-1 in java.library.path
no libsvn_ra-1 in java.library.path
no libsvn_client-1 in java.library.path
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = C:\Windows\system32;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\JavaFX\javafx-sdk1.3\bin;C:\Program Files (x86)\JavaFX\javafx-sdk1.3\emulator\bin;C:\Program Files (x86)\Common Files\OTG;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files\Intel\DMIX;C:\Program Files\Dell\DW WLAN Card;c:\Program Files\WIDCOMM\Bluetooth Software\;c:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\TortoiseSVN\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft Dynamics AX\60\BusinessConnector\Bin\;C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\;C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities
4

3 回答 3

55
window -> preferences -> team -> svn 

选择SVN接口:

客户端:SVNKit(纯 Java)

申请并重试。

于 2011-04-20T00:07:18.577 回答
3

这适用于 Windows:(对于 linux,您将不得不做一些不同的事情,抱歉):

如果你有一个

  • 64位机
  • 64位日食
  • 64位jvm

只需执行以下操作,即可享受原生 JavaHL 的稳定性和性能:

  1. 下载并安装最新的 64 位版本的SlikSvn(注意,向下兼容)
  2. 将以下行添加到您的 eclipse.ini 中,它应该指向正确的 libsvnjavahl-1.dll:

    -Dsubversion.native.library=C:/Program Files/SlikSvn/bin/libsvnjavahl-1.dll

于 2012-09-24T15:50:37.667 回答
0

尝试将 Eclipse 接口修改为 SVN,使其不使用 JavaHL。这就是我所做的:

首选项/团队/SVN/SVN 接口
* 未选中 JavaHL (JNI) 不可用
* 选中 SVNKit (Pure Java)

之后它从未抱怨过 JavaHL 库。

于 2011-09-09T23:50:28.380 回答