Home > Uncategorized > Building Jitsi with Apache Ant and Eclipse

Building Jitsi with Apache Ant and Eclipse

This is a straight forward process on a Windows 7 box to build Jitsi in Eclipse (using Apache Ant).

Prepare Eclipse:
1) install eclipse (I used juno here)
2) install java JDK
3) install apache ANT
4) git clone https://github.com/jitsi/jitsi.git

Open jitsi project in Eclipse:
1) Open eclipse
2) Create a new workspace.
3) File>Import, General>Existing Projects into Workspace
4) browse to the root of the jitsi repo and finish

Create Running configs:
1) In eclipse, Run> Run Configurations
2) click Java Application and click the “New” icon
3) On the main tab:
– Name: Debug.sip-communicator
– project name: Browse and jitsi should be listed
– main class: Search, wait, type “sip” (select SIPCommunication – net.java.sip.communicator.launcher
4) On the Arguments tab:
-VM arguments:
Dfelix.config.properties=file:lib/felix.client.run.properties
Djava.util.logging.config.file=lib/logging.properties
5) On the environment tab:
– New>
Name: path
Value: %path%;./lib/native/windows-64
6) DO NOT RUN THE CONFIG. Apply and close the window.

Don’t worry, be buildin’ now:
1) in eclipse, Window>Open Perspective>Other>Java (default)
2) in eclipse, Windows>View>Ant
3) in eclipse, Windows>Preference> Java> Installed JREs> Add> Standard VM>
JRE Home: c:\Program Files\Java\jdk1.7.0_45 (or something about that)
>Finish
4) check the jdk and click OK on the Preferences winodw.
5) in eclipse, Run> External Tools> External Tools Configuration> left-side blick on jitsi build.xml
6) on the JRE tab, bullet Separate JRE in the drop down select the Installed JRE you just created.
7) Drag build.xml out of the Package Explorer (beneath jitsi) on the left side and drop it in the Ant window.
8) Scroll down the list of build targets until you find `rebuild` (it’s there, but below where you think it should/would be)
9) right-click on `rebuild`>Runas> Ant Build
10) In the Ant window, scroll down the list of build targets until you find `deploy-os-specific-targets` (it’s there, but below where you think it should/would be)
11) right-click on `deploy-os-specific-targets`>Runas> Ant Build

Run that sucker:
1) In the Ant window, scroll down the list of build targets until you find `run` (it’s there, but below where you think it should/would be)
2) right-click on `run`>Runas> Ant Build

Debug that sucker:
1) In the Ant window, scroll down the list of build targets until you find `run` (it’s there, but below where you think it should/would be)
2) right-click on `run`>Debug as> Ant Build

References:

  • How to configure Eclipse to compile and debug Jitsi
  • Check out source code with a Git client
    Advertisements
Tags: , , , , ,
  1. March 10, 2015 at 4:05 am

    i am succesfuly compiled jitsi code in eclipse by following ur instructions. i am new to java programming.how to use this compiled jitsi code in my project.if possible plzzzzzzzzzz…….reply me
    email id – hariniroddam@gmail.com

  2. March 11, 2015 at 4:18 am

    i compiled and run jitsi open source code in eclipse by following ur instructions.i am very poor in java programming. now i want ur help how to make new java package this java (jitsi)application.
    email id – hariniroddam@gmail.com

    • March 11, 2015 at 6:16 am

      Sorry, I don’t have any experience with this.

  3. April 16, 2015 at 1:47 am

    Yes, it’s success when I running the project. But when i debugging, not error but cannot stop in the break point.. I think the debuging is failed..

    • April 16, 2015 at 1:48 am

      Can you help me?

      • April 16, 2015 at 11:54 am

        I can not help, unfortunately. I am not familiar with Eclipse or the jitsi code.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: