Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Eclipse Ganymede + Subclipse: anyone succeeded?

  1. #11
    Join Date
    Oct 2006
    Beans
    Hidden!
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    UPDATE: I found an easier solution to the problem (described in my forum post following this one).
    I'll leave this post for the more adventurous users out there.


    Quote Originally Posted by peterdm View Post
    This is how I got JavaHL to work:

    I presume you've installed Eclipse Ganymede by hand, since it's not in the Ubuntu repos. The problem comes from the fact that the subclipse plugin requires subversion 1.5.x installed, while Ubuntu 8.04 comes with subversino 1.4.x. So if we want it to work, we'll have to uninstall subversion from the Ubuntu repos and compile subversion ourselves.

    Let's assume you have Eclipse Ganymede installed in /usr/share/eclipse, and that you're using a JDK installed in /usr/lib/jvm/java-6-openjdk.

    1. In order to be able to compile subversion, you need to make sure the following packages installed: libapr-1, libapr1-dev, libaprutil1, libaprutil1-dev
      Code:
      sudo apt-get install libapr-1 libapr1-dev libaprutil1 libaprutil1-dev
    2. Make sure the Ubuntu package libsvn-java is not installed, this is the one we're about to compile for ourselves in the following steps
    3. Now download the subclipse sources and untar them (e.g. in your user's home)
      Code:
      tar -xvjf subversion-1.5.1.tar.bz2
    4. Enter the directory, configure and build javahl (as normal user) and install (as super user)
      Code:
      cd subversion-1.5.1
      ./configure --enable-javahl --with-jdk=/usr/lib/jvm/java-6-openjdk/
      make javahl
      sudo make install-javahl
    5. Now the javahl libraries are installed in /usr/local/lib but you probably want them in /usr/lib/jni.
      Code:
      sudo cp /usr/local/lib/libsvnjavahl-1.* /usr/lib/jni/
      sudo cp /usr/local/lib/svn-javahl/svn-javahl.jar /usr/share/java/
      The first command has not copied the symbolic links correctly, it has replaced them by copies of the actual files. This works, but you may want fix the links.
    6. For some reason Eclipse still doesn't pick them up now, so we'll have to be a bit more persuasive. You should add a line -Djava.library.path=/usr/lib/jni to the file /usr/share/eclipse/eclipse.ini (edit as super user) after the -vmargs line
    7. Install http://subclipse.tigris.org/update_1.4.x as Eclipse update site, and install subclipse with the javahl adapter


    Now you should have JavaHL working in Eclipse Ganymede! Double-check by opening Window->Preferences->Team->SVN, and select JavaHL under "SVN Interface" section. It should say "JavaHL (JNI) 1.5.1..." instead of the dreaded "JavaHL(JNI) Not Available"!

    Hope this helps,

    Peter
    Thx for the info Peter. This has worked for me with some differences:

    I did one more install through apt-get, as noted by Mwiti (thx!):

    Code:
    sudo apt-get install libsvn-dev
    As i didn't have any jni-libraries installed I had to create the jni directory before I did make install

    Code:
    sudo mkdir /usr/lib/jni
    sudo make install-javahl
    (To be complete, I actually executed the normal target instead: sudo make install, but target install-javahl should be sufficient.)

    Afterwards I didn't have to edit the eclipse.ini (I actually did add this but without the desired result.), but instead create links in /usr/lib to every file in the /usr/lib/jni directory.
    Code:
    cd /usr/lib
    sudo ln -s jni/libsvnjavahl-1.a
    sudo ln -s jni/libsvnjavahl-1.la
    sudo ln -s jni/libsvnjavahl-1.so.0.0.0
    sudo ln -s libsvnjavahl-1.so.0.0.0 libsvnjavahl-1.so
    sudo ln -s libsvnjavahl-1.so.0.0.0 libsvnjavahl-1.so.0
    After the linking Subclipse picked up JavaHl.

    Installed on:
    Kubuntu Hardy 8.04 amd64
    Eclipse 3.4 Ganymedes
    Last edited by hoc; August 29th, 2008 at 06:20 PM. Reason: Found an easier solution

  2. #12
    Join Date
    Oct 2006
    Beans
    Hidden!
    Distro
    Kubuntu 8.04 Hardy Heron

    Talking Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    Okok, after i ran a full 'make install' and did all the stuff mentioned above, subclipse was happy with it's javahl, but subversion had trouble accessing repositories through webdav (from commandline, etc.). I tried resolving this by recompiling subversion with the correct parameters, but without some serious changes to the makefile and compiling other libraries because of missing libraryfiles, this was impossible. Too much work and maintenance afterwards, so I just searched for the intrepid packages, as Peter rightfully suggested.

    Much easier, i admit, but the packages are not yet officially declared stable, so install at your own risk.

    So ... solution 2. Basically download relevant packages from http://packages.ubuntu.com/ and install them. An alternative is to add the intrepid repository to your apt-get installation, but then you have some pinning/priority management to do, otherwise you end up with intrepid instead of hardy.

    The packages you need are:

    http://packages.ubuntu.com/intrepid/libsqlite3-0
    http://packages.ubuntu.com/intrepid/libsvn1
    http://packages.ubuntu.com/intrepid/libneon27-gnutls
    http://packages.ubuntu.com/intrepid/libsvn-java
    http://packages.ubuntu.com/intrepid/subversion

    Download them to a separate folder, cd to the folder and run:
    Code:
    sudo dpkg -i *
    Afterwards for subclipse to find the shared libraries you still need to create some links in /usr/lib
    Code:
    cd /usr/lib
    sudo ln -s jni/libsvnjavahl-1.so.0.0.0
    sudo ln -s libsvnjavahl-1.so.0.0.0 libsvnjavahl-1.so.0.0
    sudo ln -s libsvnjavahl-1.so.0.0.0 libsvnjavahl-1.so.0
    sudo ln -s libsvnjavahl-1.so.0.0.0 libsvnjavahl-1.so
    Now subclipse works and the command line client as well. At least for repository-access over http.

    And of course thx to the ubuntu package maintainers and to the helpfull forum people for making life a bit easier.

  3. #13
    Join Date
    Oct 2007
    Beans
    6

    Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    i've installed solution 2 at my own risk... and i've messed everything up! i could install the packages because some dependencies missing. after i could remove the installed packages and some conflicts in apt-get appeared!!

    oohhohh! now i cant install svn1.5 using sourcecode because some version conflicts!! how can i remove the hand-installed deb packages and downgrade to the prev version?

    thanks!!

  4. #14
    Join Date
    Nov 2007
    Beans
    77

    Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    Intrepid contains the correct subversion library version 1.5.*.
    So for intrepid, the solution becomes slightly easier:

    1. Make sure libsvn1 and libsvn-java are installed from the repos.
    2. Edit the file /usr/share/eclipse/eclipse.ini] as superuser and add a line -Djava.library.path=/usr/lib/jni after the -vmargs line.
    3. Add http://subclipse.tigris.org/update_1.4.x as an eclipse update site and install the plugin.
    4. After eclipse restarts, you can double-check in Preferences->Team->SVN that the SVN Interface Client says "JavaHL (JNI) 1.5.*".

    Peter

  5. #15
    Join Date
    Dec 2008
    Beans
    5

    Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    I used to have the same problem. The cause, in my case, was that I was using the subclipse 1.2 update site. When I changed to the supclipse 1.4 update site everything worked fine.

    Follow the instructions on the following page:
    http://subclipse.tigris.org/install.html

  6. #16
    Join Date
    Mar 2005
    Location
    London, UK
    Beans
    15
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    I too was racking my brains - ubuntu 8.10, subclipse 1.4, ganymede, libsvn-java 1.5.1. The only other thing I needed to do was add:
    -Djava.library.path=/usr/lib/jni
    to eclipse.ini and hey presto working again.

  7. #17
    Join Date
    Feb 2009
    Beans
    1

    Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    Hi all
    I am new on Ubuntu Hardy...

    I have to work with my laptop on ganymede with subclipse (1.4)
    I have install Ubuntu Hardy cause my thinkpad got some trouble
    with intrepid (audio)

    That's why I read this thread.
    I install some libs :libapr ....
    I dowload subversion1.5.1
    I configure it
    I compile it
    But unfortunately I got this error
    cannot find the library `/usr/lib/libneon.la'

    can you help me?
    Thanks

  8. #18
    Join Date
    Mar 2005
    Location
    London, UK
    Beans
    15
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    I did it without compiling anything, just do the following
    Code:
    sudo apt-get install subversion libsvn-java
    Then edit eclipse.ini in your eclipse folder (mine's at ~/eclipse/eclipse.ini) and add the following line:
    Code:
    -Djava.library.path=/usr/lib/jni
    But I seem to recall that when I was using hardy (which you seem to be on) I just had to have libsvn-java installed - I didn't have to edit the eclipse.ini file at all.

  9. #19
    Join Date
    Apr 2008
    Location
    Nantes
    Beans
    5

    Re: Eclipse Ganymede + Subclipse: anyone succeeded?

    Hi

    I still have the problem with the new configuration.
    Here's element of my configuraton :

    Code:
    $ dpkg -l |grep libsvn-java
    ii  libsvn-java                                1.5.4dfsg1-1ubuntu2                       Java bindings for Subversion
    $ dpkg -l |grep subversion
    ii  subversion                                 1.5.4dfsg1-1ubuntu2                       Advanced version control system
    $ cat /etc/lsb-release 
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=9.04
    DISTRIB_CODENAME=jaunty
    DISTRIB_DESCRIPTION="Ubuntu 9.04"
    $ grep '<p>Release' ~/bin/eclipse/readme/readme_eclipse.html 
    <p>Release 3.4.2<br>
    See joined screenshots.

    Thans for your support.
    David «Willou»
    Attached Images Attached Images

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •