Subclipse 和 JavaHL 安装令人头疼

发布于 2025-01-06 04:44:54 字数 1264 浏览 1 评论 0 原文

我在安装最新的 Subclipse 插件时遇到了问题。我看到了这篇文章: subclipse:无法加载默认 SVN 客户端,但答案似乎特定于 Subclipse 1.6.x,我认为 1.8.x 出现了新问题。我的 Mac 版本为 10.6.8,带有 Eclipse Indigo。我安装了 Subclipse 1.8.4,并安装了 Subversion JavaHL Native Library Adapter 1.7.3,根据 http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de

当我尝试添加新的 SVN 存储库时,它显示“操作正在进行”,然后给出此错误:

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

我还尝试卸载所有 subclipse 插件,然后安装 openCollabNet subversion 包,如下所示此处推荐:http://subclipse.tigris.org/wiki/JavaHL#head-5bf26515097c3231c1b04dfdb22c036bc511926b

但是当我尝试添加新的 SVN 存储库时,收到错误:“无法加载默认 SVN 客户端“

你知道我做错了什么吗?

谢谢

I've run into problems installing the latest Subclipse plug in. I saw this post: subclipse: Unable to load default SVN Client, but the answer appears to be specific for Subclipse 1.6.x, and I think 1.8.x is presenting new issues. I'm on a mac, 10.6.8, with Eclipse Indigo. I have Subclipse 1.8.4 installed, with the Subversion JavaHL Native Library Adapter 1.7.3 installed, which is the correct version of JavaHL for Subclipse 1.8, according to http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de

When I tried to add a new SVN repository, it says "operation in progress", then gives me this error:

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

I also tried uninstalling all the subclipse plugins, and instead installing the openCollabNet subversion package, as recommended here: http://subclipse.tigris.org/wiki/JavaHL#head-5bf26515097c3231c1b04dfdb22c036bc511926b

But when I tried to add a new SVN repository, I received the error: "Unable to load defaul SVN client"

Any ideas what I'm doing wrong?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

南巷近海 2025-01-13 04:44:54

转到 Eclipse >首选项>团队> SVN
在“SVN 接口”下,选择“SVNKit”。
为我工作。

Go to Eclipse > Preferences > Team > SVN
Under "SVN interface", choose "SVNKit".
Worked for me.

忘东忘西忘不掉你 2025-01-13 04:44:54

我想澄清我为解决这个问题所采取的所有步骤,以防像我这样完全新手的未来读者像我一样对这个问题产生强烈的反对。截至 2012 年 2 月,Subclipse 的最新版本是 1.8,需要 Subversion 1.7。 Mac 似乎需要额外的 JavaHL 库,我只能为 Subversion 1.6 找到该库。因此您必须删除 Subclipse 1.8 并安装 1.6 版本。如果 CollabNet 为 subversion 1.7 提供 JavaHL 库,这一切可能都会改变。

  1. 删除 Subclipse 1.8 - 在 Eclipse 中的帮助菜单下,选择安装新软件。在底部附近的右侧,单击链接“已安装什么?”在顶部附近,您应该会看到 CollabNet Merge Client 版本 3.0.x 或类似的内容(我认为它是随 Subclipse 1.8 一起安装的),单击“卸载”并按照步骤进行卸载。 (Eclipse 然后会要求您重新启动,单击“现在不”。)向下滚动到底部,如果您看到 Subclipse,版本 1.8.x,请单击“卸载”并按照步骤操作。再次,当 eclipse 要求重新启动时,单击“现在不”。

  2. 下载子剪辑 1.6。您应该仍在“安装新软件”窗口中。在顶部附近,显示“使用:粘贴 http://subclipse.tigris.org/update_1.6.x<” /a>,下载所有文件(你可能不需要这些,但为了安全起见我把它们全部下载了)。再次,Eclipse 会要求您重新启动,不要点击“现在”,而是关闭 Eclipse。

  3. 从 CollabNet 下载 Subversion - 转至 http://www.open.collab.net/downloads/community/< /a> 并下载适合您 macOS 版本的 Subversion 1.6。下载后,打开安装程序并安装。编辑:此时您可能需要重新启动 Mac。

  4. 将 subversion 添加到 java 默认库路径 - 现在有点棘手。打开 eclipse.ini 文件(有关查找 eclipse.ini 文件的说明,请阅读以下内容:http://wiki .eclipse.org/Eclipse.ini#-vm_value:_Mac_OS_X_Example - 请注意,它与 eclipse 文件夹中的 config.ini 文件不同)。打开 eclipse.ini 文件后,将 -Djava.library.path=/opt/subversion 复制并粘贴到其末尾。保存并关闭。

  5. 现在重新启动 Eclipse,希望它能正常工作。

我不知道为什么会是这样一个过程。我去年在 Windows 机器上安装了 Sublipse,非常简单。感谢大家的帮助!

附加说明:这对于从 1.8 降级到 1.6 并能够与较旧的存储库同步也很有用。

I want to clarify all the steps I took to resolve this problem, in case future readers who are complete novices like me are banging their head against this like I was. As of Feb, 2012, the most current version of Subclipse is 1.8, which requires Subversion 1.7. It seems like macs need additional JavaHL libraries, which I can only find for Subversion 1.6. So you have to remove Subclipse 1.8 and instead install version 1.6. This may all change if CollabNet provides JavaHL libraries for subversion 1.7.

  1. Remove Subclipse 1.8 - In Eclipse, under the help menu, choose Install New Software. Near the bottom, on the right hand side, click the link "What is already installed?" Near the top, you should see CollabNet Merge Client, version 3.0.x, or something similar (I think this is installed with Subclipse 1.8), click uninstall and follow the steps to uninstall. (Eclipse will then ask you to restart, click not now. ) Scroll down to the bottom, if you see Subclipse, version 1.8.x, click uninstall and follow the steps. Again, click "not now" when eclipse asks to restart.

  2. Download Subclipse 1.6. You should still be in the Install New Software window. Near the top, where is says Work with: paste in http://subclipse.tigris.org/update_1.6.x, download all the files (you may not need these, but I downloaded them all to be safe). Again, eclipse will ask you to restart, hit not now, and close down eclipse instead.

  3. Download Subversion from CollabNet - Go to http://www.open.collab.net/downloads/community/ and download the Subversion 1.6 for the correct version of your mac OS. After downloading, open the installer and install it. EDIT: You may want to restart your mac at this point.

  4. Add subversion to java default library path - Now it gets a little tricky. Open the eclipse.ini file (for instructions to find the eclipse.ini file, read this: http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Mac_OS_X_Example - note that it is not the same as the config.ini file in the eclipse folders). After opening the eclipse.ini file, copy and paste -Djava.library.path=/opt/subversion to the end of it. Save and close.

  5. Now restart Eclipse, and hopefully it will work.

I have no idea why this is such a process. I installed Sublipse on a windows machine last year, and it was really easy. Thanks to everyone for their help!

Just an additional note: this is also useful in order to downgrade from 1.8 to 1.6 and be able to sync with older repositories.

長街聽風 2025-01-13 04:44:54

我使用了 Rafael https://stackoverflow.com/a/13090191/1446834 提供的答案,

它也对我有用。
在此处输入图像描述

I used the answer provided by Rafael https://stackoverflow.com/a/13090191/1446834

It worked for me also.
enter image description here

只为一人 2025-01-13 04:44:54

要解决此问题,只需安装软件包:

sudo apt-get install libsvn-java

您必须配置 eclipse.inito 添加路径 /jni

例如:

-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

在 Ubuntu-13.04 32 位上,您需要编辑文件:

$ sudo vi /usr/lib/eclipse/eclipse.ini

并添加路径:

-Djava.library.path=/usr/lib/i386-linux-gnu/jni

来自此博客

To fix this, just install the package with:

sudo apt-get install libsvn-java

You must config eclipse.inito add path /jni

For example:

-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni

On Ubuntu-13.04 32bits you need to edit the file:

$ sudo vi /usr/lib/eclipse/eclipse.ini

And add the path:

-Djava.library.path=/usr/lib/i386-linux-gnu/jni

From this blog

蒲公英的约定 2025-01-13 04:44:54

查看此链接以获取解决方案:http://www.breathedevelopment.com/node/49
它对我有用,而且很简单,希望有帮助

# sudo port -v selfupdate
# sudo port install subversion-javahlbindings
# sudo port upgrade --enforce-variants active +universal

Check out this link for solution: http://www.breathedevelopment.com/node/49
It worked for me and it is simple, hope it helps

# sudo port -v selfupdate
# sudo port install subversion-javahlbindings
# sudo port upgrade --enforce-variants active +universal
孤独患者 2025-01-13 04:44:54

我使用的是 Ubuntu,没有 Mac 来验证我的答案,但显然(从您的错误消息来看)您的 JavaHL 库无法在 java.library.path 上找到。

这与您提到的插件(org.tigris.subversion.clientadapter.javahl_1.7.3.jar)无关,不要将其移到其他地方。从您的链接(http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de)我假设你试图从 openCollabNet 安装,它将库安装到 /opt/subversion 中,该目录未在您的 java.library.path 中列出。您可以尝试编辑 eclipse.ini 以包含类似

-Djava.library.path=/opt/subversion

-vmargs 部分的行;我不确定这是否能解决您的问题,但它可能会给您一个指示(例如,通过收到另一条错误消息来继续)。

很抱歉,我无法真正检查我的答案,但此提示可能会帮助您解决问题。

I am on Ubuntu and don't have a Mac to validate my answer, but obviously (from your error message) your JavaHL library cannot be found on the java.library.path.

This has nothing to do with the plugin you mentioned (org.tigris.subversion.clientadapter.javahl_1.7.3.jar), don't move that anywhere else. From your link (http://subclipse.tigris.org/wiki/JavaHL#head-5ccce53a67ca6c3965de863ae91e2642eab537de) I assume you tried to install from openCollabNet, which installs the library into /opt/subversion, which is not listed on your java.library.path. You could give it a try and edit eclipse.ini to contain a line like

-Djava.library.path=/opt/subversion

in the -vmargs section; I am not sure if this will solve your problem but it might give you an indication (for example, by getting another error message to proceed with).

I am sorry that I cannot really check my answer, but this hint might help you solving the issue.

乱世争霸 2025-01-13 04:44:54

我在 Mac 10.9 上使用 Eclipse 版本:Kepler Service Release 1,Build id:20130919-0819,并设法通过使用brew安装 Subversion 来解决此问题:

brew install --universal --java subversion

运行后上面的命令,显示安装摘要:

svntools 已安装到:/usr/local/opt/subversion/libexec

我转到/usr/local/opt/subversion/ 文件夹,我搜索了所需的 jar。我在 /lib 中找到了它们,因此在 eclipse.ini 文件中添加了:

-Djava.library.path=/usr/local/opt/subversion/lib

我还使用 Eclipse 从 Eclipse 安装了 Subversion 插件此链接:

http://subclipse.tigris.org/update_1.10.x

它解决了问题。

I use Eclipse Version: Kepler Service Release 1, Build id: 20130919-0819 on Mac 10.9 and I managed to fix this by installing Subversion using brew:

brew install --universal --java subversion

After running the above command, the installation summary was displayed stating:

svntools have been installed to: /usr/local/opt/subversion/libexec

I went to the /usr/local/opt/subversion/ folder and I searched for the needed jars. I found them in /lib, so in the eclipse.ini file I added:

-Djava.library.path=/usr/local/opt/subversion/lib

I also installed the Subversion plugin from Eclipse using this link:

http://subclipse.tigris.org/update_1.10.x

and it fixed the problem.

提笔落墨 2025-01-13 04:44:54

尝试安装 javaHL 连接器,您可以从以下网站下载它们

http://www. collab.net/downloads/subversion#tab-3

Try to install the javaHL conector, you could download these from this web site

http://www.collab.net/downloads/subversion#tab-3

云巢 2025-01-13 04:44:54

我最终放弃了使用 JavaHL,而是安装了 SVNKit 1.6(确保还安装了“SVN Client Adapter”和“SVNKit Adapter”)。

......它起作用了。

I finally gave up using JavaHL and I installed SVNKit 1.6 (make sure to install "SVN Client Adapter" and "SVNKit Adapter" as well) instead.

...And it worked.

游魂 2025-01-13 04:44:54

如果在 macosx 上运行,使用brew for java进行安装的正确方法是:

brew install subversion --with-java

那么您应该执行以下操作:

sudo mkdir -p /Library/Java/Extensions
sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib

就像项目 wiki 上提到的那样 subclipse-wiki

In case of run on macosx the correct way to install using brew for java is:

brew install subversion --with-java

then you should do the following:

sudo mkdir -p /Library/Java/Extensions
sudo ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvnjavahl-1.dylib

like mention on the wiki of the project subclipse-wiki

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文