简体   繁体   English

缺少JavaHL库

[英]Missing JavaHL Library

I am running Eclipse on OS X (10.6.8) and primarily work with SVN 1.6. 我在OS X(10.6.8)上运行Eclipse,主要使用SVN 1.6。 I have subclipse installed as well. 我也安装了subclipse。

In eclipse I get the following error when I save files: 在eclipse中,我在保存文件时遇到以下错误:

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

So I did some research and found that it was because I needed to install the JavaHL Library, which I attempted to do based on information on this page: http://subclipse.tigris.org/wiki/JavaHL 所以我做了一些研究,发现这是因为我需要安装JavaHL库,我试图根据这个页面上的信息来做: http//subclipse.tigris.org/wiki/JavaHL

The approach I following based on the information at the previous link was to install MacPorts (which was successsful) and run the following command to install the JavaHL Library: 我根据上一个链接的信息遵循的方法是安装MacPorts(这是成功的)并运行以下命令来安装JavaHL库:

sudo port install subversion-javahlbindings +no_bdb +universal

However, what I didn't know was that this command installed the JavaHL Library with a version number of 1.7.7_0 which doesn't work since I need version 1.6.x so I uninstalled this version of the JavaHL Library. 但是,我不知道的是,这个命令安装了版本号为1.7.7_0的JavaHL库,由于我需要1.6.x版本,因此无法正常工作,所以我卸载了这个版本的JavaHL库。 I can't seem to find how I can get version 1.6 of JavaHL installed on my computer using macports. 我似乎无法找到如何使用macports在我的计算机上安装1.6版JavaHL。 I visited the MacPorts website, but they do not presently have a port for version 1.6. 我访问了MacPorts网站,但他们目前没有1.6版本的端口。

Any help on this problem is greatly appreciated. 非常感谢任何有关此问题的帮助。 Thanks. 谢谢。

Why don't you just use Subclipse 1.8.x which requires SVN 1.7? 为什么不直接使用需要SVN 1.7的Subclipse 1.8.x? The version of SVN on your server does not matter. 服务器上的SVN版本无关紧要。 You should just use SVN 1.7 on the client as it is faster and more reliable. 您应该在客户端上使用SVN 1.7,因为它更快,更可靠。 Now that you have MacPorts installed, you have a SVN 1.7.7 command line client to use as well. 现在您已经安装了MacPorts,您也可以使用SVN 1.7.7命令行客户端。 The only area where the client version matters is when you try to use more than one client on the same working copy. 客户端版本重要的唯一区域是当您尝试在同一工作副本上使用多个客户端时。 In that scenario, the major.minor version of the clients should match. 在这种情况下,客户端的major.minor版本应该匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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