Fixing Aptana 3 Studio Subversion plugin on Ubuntu
May 10th, 2012

In some cases upon installing Subversion plugin v1.6 from within Aptana 3 Studio on Ubuntu you may get an error when you switch to SVN perspective complaining about JavaHL module being not found.

To fix this you’ll need to do the following:

1) Check if you have JavaHL installed by issuing the below command in terminal (open terminal by pressing CTRL+ALT+T):

$find /usr -name libsvnjavahl-1.so

2) Should this command respond with empty result, then you’ll need to install JavaHL. Continue in terminal:

$sudo apt-get install libsvn-java

Let it install and then verify it’s installed by issuing:

$find /usr -name libsvnjavahl-1.so

Now it should respond with something like this (please, note that your path may be different from shown below):

/usr/lib/i386-linux-gnu/jni/libsvnjavahl-1.so

Make a note of this path or copy it to clipboard
3) Go to your Aptana 3 Studio installation directory and locate AptanaStudio3.ini file. Open it for editing with the editor of your choice and drop the following line somewhere inside replacing […] with the actual path to libsvnjavahl-1.so noted on step 2):

-Djava.library.path=[...]

In my case this line looks like

-Djava.library.path=/usr/lib/i386-linux-gnu/jni/libsvnjavahl-1.so

4) Restart Aptana and switch to SVN perspective. The error you experienced before should be gone now.

No Comments
Leave a Reply
You must be logged in to post a comment.