Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old August 27th, 2008   #11
hoc
First Cup of Ubuntu
 
Join Date: Oct 2006
My beans are hidden!
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
__________________
Running Kubuntu 8.04 amd64 on Compal JHL90.

Last edited by hoc; August 29th, 2008 at 01:20 PM.. Reason: Found an easier solution
hoc is offline   Reply With Quote
Old August 29th, 2008   #12
hoc
First Cup of Ubuntu
 
Join Date: Oct 2006
My beans are hidden!
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.
__________________
Running Kubuntu 8.04 amd64 on Compal JHL90.
hoc is offline   Reply With Quote
Old October 14th, 2008   #13
danigb
First Cup of Ubuntu
 
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!!
danigb is offline   Reply With Quote
Old November 14th, 2008   #14
peterdm
Just Give Me the Beans!
 
Join Date: Nov 2007
Beans: 50
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
peterdm is offline   Reply With Quote
Old December 16th, 2008   #15
ognum
First Cup of Ubuntu
 
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
ognum is offline   Reply With Quote
Old December 31st, 2008   #16
kehan
5 Cups of Ubuntu
 
kehan's Avatar
 
Join Date: Mar 2005
Location: London, UK
Beans: 15
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to kehan Send a message via MSN to kehan Send a message via Skype™ to kehan
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.
kehan is offline   Reply With Quote
Old February 18th, 2009   #17
ptvnga
First Cup of Ubuntu
 
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
ptvnga is offline   Reply With Quote
Old February 18th, 2009   #18
kehan
5 Cups of Ubuntu
 
kehan's Avatar
 
Join Date: Mar 2005
Location: London, UK
Beans: 15
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to kehan Send a message via MSN to kehan Send a message via Skype™ to kehan
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.
kehan is offline   Reply With Quote
Old July 19th, 2009   #19
willou
First Cup of Ubuntu
 
willou's Avatar
 
Join Date: Apr 2008
Location: Nantes
Beans: 5
Send a message via MSN to willou
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
File Type: jpg preference.jpg (85.1 KB, 4 views)
File Type: jpg installed_software.jpg (118.5 KB, 3 views)
__________________
David BOUCHÉ « Willou »
http://www.willou.net
willou is offline   Reply With Quote

Bookmarks

Tags
eclipse, ganymede, java, subclipse, subversion, svn

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:40 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry