Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incompatible JavaHL library for Subclipse in 64 bit Kubuntu

Tags:

eclipse

javahl

I'm trying to get Subversion working under Eclipse 3.7 in a 64 bit Kubuntu 11.10 but having problems. I've installed subclipse 1.8.1, installed 'libsvn-java' and have added -Djava.library.path=/usr/lib/jni/ under the -vmargs in the /usr/lib/eclipse/eclipse.ini file, but now getting the error message:

Incompatible JavaHL library loaded.  1.7.x or later required.

and can't seem to find out how to upgrade my JavaHL. I've reinstalled the subclipse plugin, which apparently also installs JavaHL version 1.7.1, so perhaps this isn't a case of JavaHL not being installed, but perhaps unfindable? - Anyone with any ideas?

** EDIT **

As mentioned below the links provided in the accepted answer have stopped working, but you can download updated files here (credit to Rekhyt) but you will need subclipse version 1.8.x which you can install by adding http://subclipse.tigris.org/update_1.8.x to Eclipse

I installed subclipse 1.8 first then installed these files in order:

  1. libsvn-java_1.7.2-0ubuntu0~ppa1_amd64.deb
  2. subversion_1.7.2-0ubuntu0~ppa1_amd64.deb
  3. libsvn1_1.7.2-0ubuntu0~ppa1_amd64.deb

If you need 32 bit go to the launchpad page and click the 'subversion - 1.7.2-0ubuntu0~ppa1' link at the bottom of the page - this will bring up all the relevant files

like image 892
Martyn Avatar asked Oct 24 '11 13:10

Martyn


3 Answers

Alternatively, you may do the following, which automates the package installation:

apt-add-repository ppa:dominik-stadler/subversion-1.7

apt-get update

apt-get dist-upgrade
like image 100
Anonymous Avatar answered Nov 16 '22 04:11

Anonymous


Because of that

First of all I had to uninstall the old packages before installing the new ones (thanks to Sergi)

for i386

  1. go to here
  2. install in order geb packages
  3. libsvn1_1.7.1-0ubuntu0~ppa4_i386.deb (979.2 KiB)
  4. subversion_1.7.1-0ubuntu0~ppa4_i386.deb (1.2 MiB)
  5. libsvn-java_1.7.1-0ubuntu0~ppa4_i386.deb

for amd64

  1. go to here
  2. install in order geb packages
  3. libsvn1_1.7.1-0ubuntu0~ppa4_amd64.deb (1.0 MiB)
  4. subversion_1.7.1-0ubuntu0~ppa4_amd64.deb (1.2 MiB)
  5. libsvn-java_1.7.1-0ubuntu0~ppa4_amd64.deb (446.7 KiB)

it worked for me.

like image 26
baybora.oren Avatar answered Nov 16 '22 02:11

baybora.oren


Sadly, I can't comment yet (or I don't understand how this site works :-)), but maybe Dave Shuck interested in it: if you change the dependencies of the .deb package, and remove the libserf-private everything works fine. Easiest to do that with this script: videbcontrol

like image 35
Gabor Avatar answered Nov 16 '22 02:11

Gabor