Posts Tagged Eclipse

Installing Subclipse on Debian (and spinoffs)


Link to the video

If you are interested in installing Subclipse as a SVN client for Eclipse, you can use the following steps, which are OS independent, so they are valid for Windows, Mac and Linux, except the procedure for installing and setting JavaHL library on Debian (and spin-off like Ubuntu).

Installing Subclipse:

In general terms, these are the steps for installing Subclipse in Eclipse:

  1. Open Eclipse, got to  Help > Install New Software.
  2. Add the Subclipse’s URL  to the specific Eclipse version you have. For instance, in Galileo you must add this one http://subclipse.tigris.org/update_1.6.x
  3. Choose all shown items: Core SVNkit Library, Optional JNA Library (recommended) and Subclipse.
  4. Accept the user agreement to star the installation process. At the end a message will pop up to warn you about the fact you are installing third-party software. Just say yes.
  5. When finished you will be asked to restart Eclipse.

JavaHL library on Debian

If you don’t want to use  SVNKit library but JavaHL, then you must install this package:

 aptitude install libsvn-java

You have two alternatives to notify Eclipse about the existence of that library:

  1. The right thing is to make Eclipse read the configuration file with the path to the JavaHL library. To be honest I couldn’t find the user’s eclipse.ini file, just the general /etc/eclipse.ini. There you can add the lines shown in bold:
  2. -startup
    plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256m
    -vmargs
    -Djava.library.path=/usr/lib/jni
    -Xms128m
    -Xmx512m
  3. The other solution is to make a symbolic link to the library, somethink like:
  4. ln -s /usr/lib/jni/libsvnjavahl-1.so /usr/lib/
  5. Reestar Eclipse and check changes by going to Preferences > Team > SVN, where you will be able to see the library version.

SVNKit library

With the installation process explained at the beginning you have downloaded SVNKit, which be used as a substitution of JavaHL, without needing to configure any file at all and with the advantage of be an multi-platform solutions, I mean, it will work on Windows and Mac as well. To do so just go to Window > Preferences > Team > SVN and choose  at the SVN section the SVNKit option:

SVNKit

With all these now you will be able to use this SVN client in Eclipse!!


, ,

6 Comments

C/C++ Develoment tools for Eclipse on Debian

C/C++ for Eclipse on Debian

If you like Eclipse and want to write programs in C or C++ in Linux you can download the C/C++ development tools, or if you are like me that install everything (or almost everything) from Debian’ s repositories you can do the following:

  1. Add the Sid repos to the /etc/apt/sources.list file, for instance:
  2. deb ftp.us.debian.org/debian sid main contrib non-free
  3. Update the package list and install the C/C++ component:
  4. aptitude update
    aptitude install eclipse-cdt
  5. Once you have finished to install the component, and avoid installing enything else from Sid (remember it’s the unstable branch of Debian), undo the change to the /etc/apt/sources.list file:
  6. #deb ftp.us.debian.org/debian sid main contrib non-free
  7. Update the package list one more time:
  8. aptitude update

Now you can write C/C++ programs from Eclipse on Debian as you can appreciate on the above picture.

, ,

No Comments