- Install Subclipse plugin
There are currently 2 versions of Subclipse and you should use the latest for retrieving SIP Communicator files. However, if you try to directly install this one you will run into somme issues about Eclipse asking you to install other plugins (e.g buckminster) to make it work.
This problem may be avoided by installing the earlier Subclipse and then by updating it to the latest version. Here are the steps you should follow:
URL: http://subclipse.tigris.org/update_1.0.x
- Start Eclipse
From the File menu select New and then click on Project
- Click Next. The Select a wizard screen appears
Unfold SVN and then select Checkout Projects from SVN
- Click Next. The Create location screen appears
Select Create a new repository location
- Click Next. The Repository location screen appears
In the URL field enter the following reference : https://sip-communicator.dev.java.net/svn/sip-communicator/trunk
- Click Next. The Accept Digital Certificate screen appears
- Click Accept Temporarily or Accept Permanently. The Check Out screen appears
Select the first folder in the tree.
- Click Next. The Check Out As screen appears
Select Check out as a project in the workspace
Enter sip-communicator as a project name.
- Click Finish.. and wait (it takes a while to download all libraries)
Setting up Eclipse for SIP Communicator
- Copy the files .project and .classpath from PROJECT_DIR/ide/eclipse to PROJECT_DIR
- Right button click on the project in the Package explorer and select Refresh.
- Done.
Earlier than Eclipse 3.3 version
- Edit your build path. Remove the ant-library and add a new entry for the previous location of the ant-library. “Add Variable”, extend “ECLIPSE_HOME” and search the ant library. Usually it is ECLIPSE_HOME/plugins/org.apache.ant_1.6.5/lib/ant.jar
Run Ant through Eclipse
Eclipse has an integrated Ant plug-in, which allows you to run all Ant targets within the IDE. You could use this functionality in two ways. You could use the Ant view from (Window→Show view→Ant) to which you can drag-and-drop the build.xml. Or you could use the Outline view to browse the targets just when the build.xml file is open in the editor.
In order to compile the project you need to run the rebuild target. In order to run the project you need the run target. When building the first time or after calling clean the target -deploy-os-specific-bundles has to be called to deploy all bundles, which are specific for your operating system. If no os-specific bundles have been deployed, SIP Communicator may not start, or certain features (e.g. the System-Tray Icon on MS-Windows) will not be available.
Configure Run and Debug through Eclipse
- Open the Run Configuration Window in Eclipse.
- Click the "New" button to create a new run configuration. In the right panel of the new configuration enter the name of your project and enter the net.java.sip.communicator.launcher.SIPCommunicator as a project Main class.
- In the "Arguments" tab of the configuration add the following two arguments in the section "VM Arguments":
- If you want to debug the program internationalized, then add your language settings into the "Program Arguments". Note: Currently available languages are English, German and Bulgarian. For the complete list have a look in the package net.java.sip.communicator.impl.gui.i18n
- In the "Environment" tab of the configuration add a new variable called path and let it point to the system path and additionally to the library path for your system. For Windows this is
- %path%;./lib/native/windows.
注意:在运行这个项目之前,你必须先去运行ant,且的ant的参数为rebuild。
就本人的使用经验:运行ant rebuild仍然会报两个bundle 异常,而要直接 ant rebuild run就不会报了。