Tuesday, July 10, 2012

Getting Subclipse to work with Ubuntu 12.04

First of all you need to install "Java binding for subversion" by executing:
    sudo apt-get install libsvn-java

If you haven't done that the "Failed to load JavaHL Library" error message will be shown:





Even if Java binding for subversion is installed properly there is version mismatch between the JavaHL library expected by the newly installed subclipse and the one provided by Ubuntu 12.04. The table of the required versions is provided here. The latest available version of Subclipse is 1.8.x which requires version 1.7.x of JavaHL. However Ubuntu provides version 1.6 of Subversion and JavaHL. As the result the error message "Incompatible JavaHL library loaded. 1.7.x or later is required." is shown:

Most solutions that are suggested are to install latest version of subversion (like here). For people who just like me are reluctant to install any software from third party repositories I would recommend to install version 1.6.x of Subclipse instead of latest 1.8.x.

1. Uninstall latest version of Subclipse:

  • In "Help" dropdown menu choose "Install new software..."
  • Click on "What is already installed?"


  • Select all the packages shown below and click on "Uninstall".

 2. Install version 1.6 of Subclipse
  • In "Help" dropdown menu choose "Install new software..."
  •  Provide "http://subclipse.tigris.org/update_1.6.x" as "Work with:" link and press ENTER, then choose "Subclipse" and click on Next.

2 comments:

  1. Hey, thanks! I've been struggling to get 1.8 working for a week, but I never thought about downgrading! 1.6 works just fine, too.

    ReplyDelete