Eclipse is a must for SW developers. It has infinitely many plug-ins helping to users. Today I will deal with using a pre-configured Eclipse in your Ubuntu 12.xx 32-bit system for Subclipse. This post is mostly for myself, but if you have a friend having an Eclipse working with Subclipse, then you do not have to install Eclipse to your system. And you do not need to deal with JavaHL library which is a must for Subclipse plug-in.
If you want to have further information about JavaHL lib, just tune to link below:
http://subclipse.tigris.org/wiki/JavaHL
Steps to Follow:
1) apt-get install libsvn-java # Use sudo in Ubuntu
2) Just get the eclipse folder and "libsvnjavahl-1.so.0.0.0" file from a proper configuration. Note that "libsvnjavahl-1.so.0.0.0" is located at "/usr/lib/i386-linux-gnu/jni/"
3) Copy eclipse folder whereever you want. For instance, I've located it to Desktop. Then copy libsvnjavahl-1.so.0.0.0 file under "/usr/lib/i386-linux-gnu/jni/" directory.
4) Open terminal, make symbolic links to libsvnjavahl-1.so.0.0.0:
cd /usr/lib/i386-linux-gnu/jni/
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
5) Show the JavaHL library path to eclipse. For this step, open the eclipse folder and open eclipse.ini file to edit.
openFile
-vmargs
-Djava.library.path=/usr/lib/i386-linux-gnu/jni
under -vmargs parameter, write the path as given above.
Now your eclipse is ready to use it with Subclipse plug-in.
As I mentioned above, this post will be really useful for me. For the ones who need a working eclipse configuration with CDT, Subclipse and Android Development Tool (ADT), I can provide an eclipse folder including the javahl lib also.
If you have already installed an eclipse, steps 3 and 4 should be sufficient for you to be able to achieve. I can provide you the "libsvnjavahl-1.so.0.0.0" file.
P.S. Thanks to my enthusiastic friend Sercang spent his time with me while we were trying to make eclipse work!..
Hiç yorum yok:
Yorum Gönder