Subclipse and JavaHL installation headache

2019-01-21 02:22发布

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

10条回答
爷的心禁止访问
2楼-- · 2019-01-21 02:26

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.

查看更多
爷的心禁止访问
3楼-- · 2019-01-21 02:28

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

查看更多
Luminary・发光体
4楼-- · 2019-01-21 02:29

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
查看更多
\"骚年 ilove
5楼-- · 2019-01-21 02:30

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

It worked for me also. enter image description here

查看更多
对你真心纯属浪费
6楼-- · 2019-01-21 02:41

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

查看更多
啃猪蹄的小仙女
7楼-- · 2019-01-21 02:44

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

查看更多
登录 后发表回答