Monday, December 19, 2005

ubuntu: subclipse with javahl


Build subvesrion with javahl support: (works with subclipse)


Make a directory to work in:
mkdir builds
cd builds


Get the source: (version 1.2.0)
apt-get source subversion


unzip and go into dir (x2):
tar -xzf
cd
tar -xzf
cd


Not really sure what this does, but it needs to be done:
./autogen.sh


Make subversion with javahl support:note that I had to download the j2sdk package
./configure --enable-javahl --with-jdk=/usr/lib/j2se/1.4/ --prefix=/usr


make
make javahl
sudo make install
sudo make install-javahl


Move the lib files to the directory eclipse expects them in: (/usr/lib/jni)
sudo mv /usr/lib/libsvnjavahl-1.* /usr/lib/jni/


Make a backup of the old svnjavahl.jar:
mv /usr/local/lib/eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.30/svnjavahl.jar /usr/local/lib/eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.30/svnjavahl.jar~


Move the new one into it's place:
sudo mv /usr/lib/svn-javahl/svn-javahl.jar /usr/local/lib/eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.30/svnjavahl.jar


Install Subclipse plugin (version 9.30):




This f$king works... finally

technorati tags: , , , ,