[sip-comm] Running problem


#1

Finally I'm able to build successfully.

Thanks to Yana and Emil.

Now, I'm trying to run the code. I've read the documentation here:
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse

When I run the program, in console tab I see "Welcome to Felix" and "Enter
profile name:". I entered random word and pressed enter. But the program
won't show up. Any idea?

Thanks.

Best regards,
Roiki

···

On 6/19/07, Emil Ivov <emil.ivov@gmail.com> wrote:

Hello Roiki,

You should build your code one first time using ant (i.e. ant build)and
the file will be generated.

Cheers
Emil

Roiki Guo wrote:
> Hi Yana,
> I've downloaded the latest .classpath file then, after fixing some other
> problems, Eclipse generates NightlyBuildID cannot be resolved error.
>
> Here's part of the code"
>
> *
>
> public
>
> * String getNightlyBuildID()
>
> {
>
> *if*(!isNightly())
>
> * return* * null*;
>
> *return* NightlyBuildID.BUILD_ID;
>
> }
>
> It's in VersionImpl.java line 135. Apparently NightlyBuildID is not
> declared any where in the code. Is the code missing or should I added by

> myself?
>
> Thanks.
>
> Roiki
>
> On 6/18/07, *Yana Stamcheva* <yana@sip-communicator.org > > <mailto: yana@sip-communicator.org>> wrote:
>
> Hi Roiki,
>
> I've just committed a fix of the .classpath file in the /ide/eclipse
> directory. If you replace your project workspace .classpath file
with
> this one it should work. Afterwards You should only add your own
ant.jar
> to the list of libraries.
>
> Sorry for the inconvenience!
> Yana
>
> Roiki Guo wrote:
> > My current status is observer. I used windows and eclipse. When
> building
> > the
> > source code, I got this error code:
> > Severity and Description Path Resource Location Creation Time Id
> > Project sip-communicator is missing required library:
> 'sip-communicator.bin
> > /bundle1/version0.0/embedded/kxml2-2.2.2.jar' sip-communicator
Build
> > path 1182088372883 23
> >
> > I've checked the [project folder]\bin, the folder is empty. And
I've
> > searched for kxml2-2.2.2.jar in the project folder, but without
> result.
> >
> > What should I do?
> >
> > Thanks.
> >
> > Best regards,
> > roscoe_x
> >
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@sip-communicator.dev.java.net
> <mailto: users-unsubscribe@sip-communicator.dev.java.net>
> For additional commands, e-mail:
> users-help@sip-communicator.dev.java.net
> <mailto: users-help@sip-communicator.dev.java.net>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#2

Hello Roiki,

How do you run the project? You should use the ant run target. In case you'd like to run it differently then make sure that you tell felix to use the the felix.client.run.properties in the lib directory. You can do so through the "felix.config.properties" system property or otherwise it would simply launch an empty OSGi profile as it did for you.

I'd strongly suggest that you use the build.xml run target though as it would help you avoid other environment problems.

Hope this helps
Emil

Roiki Guo wrote:

···

Finally I'm able to build successfully.
Thanks to Yana and Emil.
Now, I'm trying to run the code. I've read the documentation here:
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse
  When I run the program, in console tab I see "Welcome to Felix" and "Enter profile name:". I entered random word and pressed enter. But the program won't show up. Any idea?
Thanks.
Best regards,
Roiki

On 6/19/07, *Emil Ivov* <emil.ivov@gmail.com > <mailto:emil.ivov@gmail.com> > wrote:

    Hello Roiki,

    You should build your code one first time using ant (i.e. ant build)and
    the file will be generated.

    Cheers
    Emil

    Roiki Guo wrote:
     > Hi Yana,
     > I've downloaded the latest .classpath file then, after fixing
    some other
     > problems, Eclipse generates NightlyBuildID cannot be resolved error.
     >
     > Here's part of the code"
     >
     > *
     >
     > public
     >
     > * String getNightlyBuildID()
     >
     > {
     >
     > *if*(!isNightly())
     >
     > * return* * null*;
     >
     > *return* NightlyBuildID.BUILD_ID;
     >
     > }
     >
     > It's in VersionImpl.java line 135. Apparently NightlyBuildID is not
     > declared any where in the code. Is the code missing or should I
    added by
     > myself?
     >
     > Thanks.
     >
     > Roiki
     >
     > On 6/18/07, *Yana Stamcheva* < yana@sip-communicator.org > <mailto:yana@sip-communicator.org> > > <mailto: yana@sip-communicator.org > <mailto:yana@sip-communicator.org>>> wrote:
     >
     > Hi Roiki,
     >
     > I've just committed a fix of the .classpath file in the
    /ide/eclipse
     > directory. If you replace your project workspace .classpath
    file with
     > this one it should work. Afterwards You should only add your
    own ant.jar
     > to the list of libraries.
     >
     > Sorry for the inconvenience!
     > Yana
     >
     > Roiki Guo wrote:
     > > My current status is observer. I used windows and eclipse.
    When
     > building
     > > the
     > > source code, I got this error code:
     > > Severity and Description Path Resource Location Creation
    Time Id
     > > Project sip-communicator is missing required library:
     > 'sip-communicator.bin
     > >
    /bundle1/version0.0/embedded/kxml2-2.2.2.jar' sip-communicator Build
     > > path 1182088372883 23
     > >
     > > I've checked the [project folder]\bin, the folder is
    empty. And I've
     > > searched for kxml2-2.2.2.jar in the project folder, but
    without
     > result.
     > >
     > > What should I do?
     > >
     > > Thanks.
     > >
     > > Best regards,
     > > roscoe_x
     > >
     >
     > ---------------------------------------------------------------------
     > To unsubscribe, e-mail:
     > users-unsubscribe@sip-communicator.dev.java.net
    <mailto:users-unsubscribe@sip-communicator.dev.java.net>
     > <mailto: users-unsubscribe@sip-communicator.dev.java.net
    <mailto:users-unsubscribe@sip-communicator.dev.java.net>>
     > For additional commands, e-mail:
     > users-help@sip-communicator.dev.java.net
    <mailto:users-help@sip-communicator.dev.java.net>
     > <mailto: users-help@sip-communicator.dev.java.net
    <mailto:users-help@sip-communicator.dev.java.net>>
     >

    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    users-unsubscribe@sip-communicator.dev.java.net
    <mailto:users-unsubscribe@sip-communicator.dev.java.net>
    For additional commands, e-mail:
    users-help@sip-communicator.dev.java.net
    <mailto:users-help@sip-communicator.dev.java.net>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#3

Hi Emil,
I run it directly from Eclipse, I select "Run" in menu. Then select "run" =>
"sip-communicator-win" (the setting used is just as described in the
tutorial page) => "Run" again.

I've tried your suggestion and it work fine ( a little bit slow though). But
what about if we want to debug the code? About the method you
mention, modified Felix properties in its lib directory, is there any more
detailed documentation?

O, and maybe I could help in making user documentation.

Thanks.

Best regards,
Roiki

···

On 6/19/07, Emil Ivov <emil.ivov@gmail.com> wrote:

Hello Roiki,

How do you run the project? You should use the ant run target. In case
you'd like to run it differently then make sure that you tell felix to
use the the felix.client.run.properties in the lib directory. You can do
so through the "felix.config.properties" system property or otherwise it
would simply launch an empty OSGi profile as it did for you.

I'd strongly suggest that you use the build.xml run target though as it
would help you avoid other environment problems.

Hope this helps
Emil

Roiki Guo wrote:
> Finally I'm able to build successfully.
>
> Thanks to Yana and Emil.
>
> Now, I'm trying to run the code. I've read the documentation here:
> http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse
>
> When I run the program, in console tab I see "Welcome to Felix" and
> "Enter profile name:". I entered random word and pressed enter. But the
> program won't show up. Any idea?
>
> Thanks.
>
> Best regards,
> Roiki
>
> On 6/19/07, *Emil Ivov* <emil.ivov@gmail.com > > <mailto:emil.ivov@gmail.com> > wrote:
>
> Hello Roiki,
>
> You should build your code one first time using ant (i.e. ant
build)and
> the file will be generated.
>
> Cheers
> Emil
>
> Roiki Guo wrote:
> > Hi Yana,
> > I've downloaded the latest .classpath file then, after fixing
> some other
> > problems, Eclipse generates NightlyBuildID cannot be resolved
error.
> >
> > Here's part of the code"
> >
> > *
> >
> > public
> >
> > * String getNightlyBuildID()
> >
> > {
> >
> > *if*(!isNightly())
> >
> > * return* * null*;
> >
> > *return* NightlyBuildID.BUILD_ID;
> >
> > }
> >
> > It's in VersionImpl.java line 135. Apparently NightlyBuildID is
not
> > declared any where in the code. Is the code missing or should I
> added by
> > myself?
> >
> > Thanks.
> >
> > Roiki
> >
> > On 6/18/07, *Yana Stamcheva* < yana@sip-communicator.org > > <mailto:yana@sip-communicator.org> > > > <mailto: yana@sip-communicator.org > > <mailto:yana@sip-communicator.org>>> wrote:
> >
> > Hi Roiki,
> >
> > I've just committed a fix of the .classpath file in the
> /ide/eclipse
> > directory. If you replace your project workspace .classpath
> file with
> > this one it should work. Afterwards You should only add your
> own ant.jar
> > to the list of libraries.
> >
> > Sorry for the inconvenience!
> > Yana
> >
> > Roiki Guo wrote:
> > > My current status is observer. I used windows and eclipse.

> When
> > building
> > > the
> > > source code, I got this error code:
> > > Severity and Description Path Resource Location Creation
> Time Id
> > > Project sip-communicator is missing required library:
> > 'sip-communicator.bin
> > >
> /bundle1/version0.0/embedded/kxml2- 2.2.2.jar' sip-communicator
Build
> > > path 1182088372883 23
> > >
> > > I've checked the [project folder]\bin, the folder is
> empty. And I've
> > > searched for kxml2-2.2.2.jar in the project folder, but
> without
> > result.
> > >
> > > What should I do?
> > >
> > > Thanks.
> > >
> > > Best regards,
> > > roscoe_x
> > >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@sip-communicator.dev.java.net
> <mailto:users-unsubscribe@sip-communicator.dev.java.net>
> > <mailto: users-unsubscribe@sip-communicator.dev.java.net
> <mailto:users-unsubscribe@sip-communicator.dev.java.net >>
> > For additional commands, e-mail:
> > users-help@sip-communicator.dev.java.net
> <mailto: users-help@sip-communicator.dev.java.net>
> > <mailto: users-help@sip-communicator.dev.java.net
> <mailto: users-help@sip-communicator.dev.java.net>>
> >
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@sip-communicator.dev.java.net
> <mailto:users-unsubscribe@sip-communicator.dev.java.net >
> For additional commands, e-mail:
> users-help@sip-communicator.dev.java.net
> <mailto: users-help@sip-communicator.dev.java.net>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#4

Hi Roiki,

Roiki Guo wrote:

Hi Emil,
I run it directly from Eclipse, I select "Run" in menu. Then select "run" =>
"sip-communicator-win" (the setting used is just as described in the
tutorial page) => "Run" again.

You talk about which tutorial page here?

I've tried your suggestion and it work fine ( a little bit slow though). But
what about if we want to debug the code? About the method you
mention, modified Felix properties in its lib directory, is there any more
detailed documentation?

If you want to configure Eclipse to run and debug your application using the run and debug items you should do the following:
   - in your project run configuration you should specify as a main class
the org.apache.felix.main.Main
   - in the VM arguments section you should add the following lines:

  -Dfelix.config.properties=file:lib/felix.client.run.properties
  -Djava.util.logging.config.file=lib/logging.properties

Is that what you were asking for?

O, and maybe I could help in making user documentation.

That would be great!

Yana

···

Thanks.

Best regards,
Roiki

On 6/19/07, Emil Ivov <emil.ivov@gmail.com> wrote:

Hello Roiki,

How do you run the project? You should use the ant run target. In case
you'd like to run it differently then make sure that you tell felix to
use the the felix.client.run.properties in the lib directory. You can do
so through the "felix.config.properties" system property or otherwise it
would simply launch an empty OSGi profile as it did for you.

I'd strongly suggest that you use the build.xml run target though as it
would help you avoid other environment problems.

Hope this helps
Emil

Roiki Guo wrote:
> Finally I'm able to build successfully.
>
> Thanks to Yana and Emil.
>
> Now, I'm trying to run the code. I've read the documentation here:
> http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse
>
> When I run the program, in console tab I see "Welcome to Felix" and
> "Enter profile name:". I entered random word and pressed enter. But the
> program won't show up. Any idea?
>
> Thanks.
>
> Best regards,
> Roiki
>
> On 6/19/07, *Emil Ivov* <emil.ivov@gmail.com >> > <mailto:emil.ivov@gmail.com> > wrote:
>
> Hello Roiki,
>
> You should build your code one first time using ant (i.e. ant
build)and
> the file will be generated.
>
> Cheers
> Emil
>
> Roiki Guo wrote:
> > Hi Yana,
> > I've downloaded the latest .classpath file then, after fixing
> some other
> > problems, Eclipse generates NightlyBuildID cannot be resolved
error.
> >
> > Here's part of the code"
> >
> > *
> >
> > public
> >
> > * String getNightlyBuildID()
> >
> > {
> >
> > *if*(!isNightly())
> >
> > * return* * null*;
> >
> > *return* NightlyBuildID.BUILD_ID;
> >
> > }
> >
> > It's in VersionImpl.java line 135. Apparently NightlyBuildID is
not
> > declared any where in the code. Is the code missing or should I
> added by
> > myself?
> >
> > Thanks.
> >
> > Roiki
> >
> > On 6/18/07, *Yana Stamcheva* < yana@sip-communicator.org >> > <mailto:yana@sip-communicator.org> >> > > <mailto: yana@sip-communicator.org >> > <mailto:yana@sip-communicator.org>>> wrote:
> >
> > Hi Roiki,
> >
> > I've just committed a fix of the .classpath file in the
> /ide/eclipse
> > directory. If you replace your project workspace .classpath
> file with
> > this one it should work. Afterwards You should only add your
> own ant.jar
> > to the list of libraries.
> >
> > Sorry for the inconvenience!
> > Yana
> >
> > Roiki Guo wrote:
> > > My current status is observer. I used windows and eclipse.

> When
> > building
> > > the
> > > source code, I got this error code:
> > > Severity and Description Path Resource Location Creation
> Time Id
> > > Project sip-communicator is missing required library:
> > 'sip-communicator.bin
> > >
> /bundle1/version0.0/embedded/kxml2- 2.2.2.jar' sip-communicator
Build
> > > path 1182088372883 23
> > >
> > > I've checked the [project folder]\bin, the folder is
> empty. And I've
> > > searched for kxml2-2.2.2.jar in the project folder, but
> without
> > result.
> > >
> > > What should I do?
> > >
> > > Thanks.
> > >
> > > Best regards,
> > > roscoe_x
> > >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@sip-communicator.dev.java.net
> <mailto:users-unsubscribe@sip-communicator.dev.java.net>
> > <mailto: users-unsubscribe@sip-communicator.dev.java.net
> <mailto:users-unsubscribe@sip-communicator.dev.java.net >>
> > For additional commands, e-mail:
> > users-help@sip-communicator.dev.java.net
> <mailto: users-help@sip-communicator.dev.java.net>
> > <mailto: users-help@sip-communicator.dev.java.net
> <mailto: users-help@sip-communicator.dev.java.net>>
> >
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@sip-communicator.dev.java.net
> <mailto:users-unsubscribe@sip-communicator.dev.java.net >
> For additional commands, e-mail:
> users-help@sip-communicator.dev.java.net
> <mailto: users-help@sip-communicator.dev.java.net>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#5

Dear Yana,

Hi Roiki,

Roiki Guo wrote:
> Hi Emil,
> I run it directly from Eclipse, I select "Run" in menu. Then select
> "run" =>
> "sip-communicator-win" (the setting used is just as described in the
> tutorial page) => "Run" again.

You talk about which tutorial page here?

The one I wrote before. In here:
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse

> I've tried your suggestion and it work fine ( a little bit slow though).
> But
> what about if we want to debug the code? About the method you
> mention, modified Felix properties in its lib directory, is there any
more
> detailed documentation?

If you want to configure Eclipse to run and debug your application using
the run and debug items you should do the following:
  - in your project run configuration you should specify as a main class
the org.apache.felix.main.Main
  - in the VM arguments section you should add the following lines:

       -Dfelix.config.properties=file:lib/felix.client.run.properties
       -Djava.util.logging.config.file=lib/logging.properties

Is that what you were asking for?

In my project run configuration I already set
*Project:* sip-communicator
*Main class:* net.java.sip.communicator.launcher.SIPCommunicator
    I don't think we could set two main classes, right? And also I cannot
find the class org.apache.felix.main.Main.

O, and maybe I could help in making user documentation.
>
That would be great!

Is there any guideline on how to do it?

Thanks,
Roiki

Yana

···

On 6/19/07, Yana Stamcheva <yana@sip-communicator.org> wrote:

> Thanks.
>
> Best regards,
> Roiki
>
> On 6/19/07, Emil Ivov <emil.ivov@gmail.com> wrote:
>>
>> Hello Roiki,
>>
>> How do you run the project? You should use the ant run target. In case
>> you'd like to run it differently then make sure that you tell felix to
>> use the the felix.client.run.properties in the lib directory. You can
do
>> so through the "felix.config.properties" system property or otherwise
it
>> would simply launch an empty OSGi profile as it did for you.
>>
>> I'd strongly suggest that you use the build.xml run target though as it
>> would help you avoid other environment problems.
>>
>> Hope this helps
>> Emil
>>
>> Roiki Guo wrote:
>> > Finally I'm able to build successfully.
>> >
>> > Thanks to Yana and Emil.
>> >
>> > Now, I'm trying to run the code. I've read the documentation here:
>> >
>>
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse
>> >
>> > When I run the program, in console tab I see "Welcome to Felix" and
>> > "Enter profile name:". I entered random word and pressed enter. But
the
>> > program won't show up. Any idea?
>> >
>> > Thanks.
>> >
>> > Best regards,
>> > Roiki
>> >
>> > On 6/19/07, *Emil Ivov* <emil.ivov@gmail.com > >> > <mailto:emil.ivov@gmail.com> > wrote:
>> >
>> > Hello Roiki,
>> >
>> > You should build your code one first time using ant (i.e. ant
>> build)and
>> > the file will be generated.
>> >
>> > Cheers
>> > Emil
>> >
>> > Roiki Guo wrote:
>> > > Hi Yana,
>> > > I've downloaded the latest .classpath file then, after fixing
>> > some other
>> > > problems, Eclipse generates NightlyBuildID cannot be resolved
>> error.
>> > >
>> > > Here's part of the code"
>> > >
>> > > *
>> > >
>> > > public
>> > >
>> > > * String getNightlyBuildID()
>> > >
>> > > {
>> > >
>> > > *if*(!isNightly())
>> > >
>> > > * return* * null*;
>> > >
>> > > *return* NightlyBuildID.BUILD_ID;
>> > >
>> > > }
>> > >
>> > > It's in VersionImpl.java line 135. Apparently NightlyBuildID
is
>> not
>> > > declared any where in the code. Is the code missing or should
I
>> > added by
>> > > myself?
>> > >
>> > > Thanks.
>> > >
>> > > Roiki
>> > >
>> > > On 6/18/07, *Yana Stamcheva* < yana@sip-communicator.org > >> > <mailto:yana@sip-communicator.org> > >> > > <mailto: yana@sip-communicator.org > >> > <mailto:yana@sip-communicator.org>>> wrote:
>> > >
>> > > Hi Roiki,
>> > >
>> > > I've just committed a fix of the .classpath file in the
>> > /ide/eclipse
>> > > directory. If you replace your project workspace
.classpath
>> > file with
>> > > this one it should work. Afterwards You should only add
your
>> > own ant.jar
>> > > to the list of libraries.
>> > >
>> > > Sorry for the inconvenience!
>> > > Yana
>> > >
>> > > Roiki Guo wrote:
>> > > > My current status is observer. I used windows and
>> eclipse.
>>
>> > When
>> > > building
>> > > > the
>> > > > source code, I got this error code:
>> > > > Severity and Description Path Resource Location
Creation
>> > Time Id
>> > > > Project sip-communicator is missing required library:
>> > > 'sip-communicator.bin
>> > > >
>> > /bundle1/version0.0/embedded/kxml2- 2.2.2.jar' sip-communicator
>> Build
>> > > > path 1182088372883 23
>> > > >
>> > > > I've checked the [project folder]\bin, the folder is
>> > empty. And I've
>> > > > searched for kxml2-2.2.2.jar in the project folder, but
>> > without
>> > > result.
>> > > >
>> > > > What should I do?
>> > > >
>> > > > Thanks.
>> > > >
>> > > > Best regards,
>> > > > roscoe_x
>> > > >
>> > >
>> >
>> ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail:
>> > > users-unsubscribe@sip-communicator.dev.java.net
>> > <mailto:users-unsubscribe@sip-communicator.dev.java.net>
>> > > <mailto: users-unsubscribe@sip-communicator.dev.java.net
>> > <mailto:users-unsubscribe@sip-communicator.dev.java.net >>
>> > > For additional commands, e-mail:
>> > > users-help@sip-communicator.dev.java.net
>> > <mailto: users-help@sip-communicator.dev.java.net>
>> > > <mailto: users-help@sip-communicator.dev.java.net
>> > <mailto: users-help@sip-communicator.dev.java.net>>
>> > >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> > users-unsubscribe@sip-communicator.dev.java.net
>> > <mailto:users-unsubscribe@sip-communicator.dev.java.net >
>> > For additional commands, e-mail:
>> > users-help@sip-communicator.dev.java.net
>> > <mailto: users-help@sip-communicator.dev.java.net>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
>> For additional commands, e-mail:
users-help@sip-communicator.dev.java.net
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#6

Hi again Roiki,

Roiki Guo wrote:

Dear Yana,

Hi Roiki,

Roiki Guo wrote:
> Hi Emil,
> I run it directly from Eclipse, I select "Run" in menu. Then select
> "run" =>
> "sip-communicator-win" (the setting used is just as described in the
> tutorial page) => "Run" again.

You talk about which tutorial page here?

The one I wrote before. In here:
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse

the documentation you referenced is actually out of date, that's why it's not referenced from the Developer Documentation page on sip-communicator.org. Instead you should look at the following page:

http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipseNew

However on this page we don't have yet a tutorial about how to configure "Run" and "Debug".

> I've tried your suggestion and it work fine ( a little bit slow though).
> But
> what about if we want to debug the code? About the method you
> mention, modified Felix properties in its lib directory, is there any
more
> detailed documentation?

If you want to configure Eclipse to run and debug your application using
the run and debug items you should do the following:
  - in your project run configuration you should specify as a main class
the org.apache.felix.main.Main
  - in the VM arguments section you should add the following lines:

       -Dfelix.config.properties=file:lib/felix.client.run.properties
       -Djava.util.logging.config.file=lib/logging.properties

Is that what you were asking for?

In my project run configuration I already set
*Project:* sip-communicator
*Main class:* net.java.sip.communicator.launcher.SIPCommunicator
   I don't think we could set two main classes, right? And also I cannot
find the class org.apache.felix.main.Main.

You could keep that and just add the VM arguments. I've just tested it and it works for me.

O, and maybe I could help in making user documentation.
>
That would be great!

Is there any guideline on how to do it?

No there's no guideline, but you could have a look at the existing documentation.

Yana

···

On 6/19/07, Yana Stamcheva <yana@sip-communicator.org> wrote:

Thanks,
Roiki

Yana

> Thanks.
>
> Best regards,
> Roiki
>
> On 6/19/07, Emil Ivov <emil.ivov@gmail.com> wrote:
>>
>> Hello Roiki,
>>
>> How do you run the project? You should use the ant run target. In case
>> you'd like to run it differently then make sure that you tell felix to
>> use the the felix.client.run.properties in the lib directory. You can
do
>> so through the "felix.config.properties" system property or otherwise
it
>> would simply launch an empty OSGi profile as it did for you.
>>
>> I'd strongly suggest that you use the build.xml run target though as it
>> would help you avoid other environment problems.
>>
>> Hope this helps
>> Emil
>>
>> Roiki Guo wrote:
>> > Finally I'm able to build successfully.
>> >
>> > Thanks to Yana and Emil.
>> >
>> > Now, I'm trying to run the code. I've read the documentation here:
>> >
>>
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse
>> >
>> > When I run the program, in console tab I see "Welcome to Felix" and
>> > "Enter profile name:". I entered random word and pressed enter. But
the
>> > program won't show up. Any idea?
>> >
>> > Thanks.
>> >
>> > Best regards,
>> > Roiki
>> >
>> > On 6/19/07, *Emil Ivov* <emil.ivov@gmail.com >> >> > <mailto:emil.ivov@gmail.com> > wrote:
>> >
>> > Hello Roiki,
>> >
>> > You should build your code one first time using ant (i.e. ant
>> build)and
>> > the file will be generated.
>> >
>> > Cheers
>> > Emil
>> >
>> > Roiki Guo wrote:
>> > > Hi Yana,
>> > > I've downloaded the latest .classpath file then, after fixing
>> > some other
>> > > problems, Eclipse generates NightlyBuildID cannot be resolved
>> error.
>> > >
>> > > Here's part of the code"
>> > >
>> > > *
>> > >
>> > > public
>> > >
>> > > * String getNightlyBuildID()
>> > >
>> > > {
>> > >
>> > > *if*(!isNightly())
>> > >
>> > > * return* * null*;
>> > >
>> > > *return* NightlyBuildID.BUILD_ID;
>> > >
>> > > }
>> > >
>> > > It's in VersionImpl.java line 135. Apparently NightlyBuildID
is
>> not
>> > > declared any where in the code. Is the code missing or should
I
>> > added by
>> > > myself?
>> > >
>> > > Thanks.
>> > >
>> > > Roiki
>> > >
>> > > On 6/18/07, *Yana Stamcheva* < yana@sip-communicator.org >> >> > <mailto:yana@sip-communicator.org> >> >> > > <mailto: yana@sip-communicator.org >> >> > <mailto:yana@sip-communicator.org>>> wrote:
>> > >
>> > > Hi Roiki,
>> > >
>> > > I've just committed a fix of the .classpath file in the
>> > /ide/eclipse
>> > > directory. If you replace your project workspace
.classpath
>> > file with
>> > > this one it should work. Afterwards You should only add
your
>> > own ant.jar
>> > > to the list of libraries.
>> > >
>> > > Sorry for the inconvenience!
>> > > Yana
>> > >
>> > > Roiki Guo wrote:
>> > > > My current status is observer. I used windows and
>> eclipse.
>>
>> > When
>> > > building
>> > > > the
>> > > > source code, I got this error code:
>> > > > Severity and Description Path Resource Location
Creation
>> > Time Id
>> > > > Project sip-communicator is missing required library:
>> > > 'sip-communicator.bin
>> > > >
>> > /bundle1/version0.0/embedded/kxml2- 2.2.2.jar' sip-communicator
>> Build
>> > > > path 1182088372883 23
>> > > >
>> > > > I've checked the [project folder]\bin, the folder is
>> > empty. And I've
>> > > > searched for kxml2-2.2.2.jar in the project folder, but
>> > without
>> > > result.
>> > > >
>> > > > What should I do?
>> > > >
>> > > > Thanks.
>> > > >
>> > > > Best regards,
>> > > > roscoe_x
>> > > >
>> > >
>> >
>> ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail:
>> > > users-unsubscribe@sip-communicator.dev.java.net
>> > <mailto:users-unsubscribe@sip-communicator.dev.java.net>
>> > > <mailto: users-unsubscribe@sip-communicator.dev.java.net
>> > <mailto:users-unsubscribe@sip-communicator.dev.java.net >>
>> > > For additional commands, e-mail:
>> > > users-help@sip-communicator.dev.java.net
>> > <mailto: users-help@sip-communicator.dev.java.net>
>> > > <mailto: users-help@sip-communicator.dev.java.net
>> > <mailto: users-help@sip-communicator.dev.java.net>>
>> > >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> > users-unsubscribe@sip-communicator.dev.java.net
>> > <mailto:users-unsubscribe@sip-communicator.dev.java.net >
>> > For additional commands, e-mail:
>> > users-help@sip-communicator.dev.java.net
>> > <mailto: users-help@sip-communicator.dev.java.net>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
>> For additional commands, e-mail:
users-help@sip-communicator.dev.java.net
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#7

Hi again Yana,

Sorry for asking so much, I'm new in this kind of open source collaboration
project.

Hi again Roiki,

Roiki Guo wrote:
> Dear Yana,
>
>>
>> Hi Roiki,
>>
>> Roiki Guo wrote:
>> > Hi Emil,
>> > I run it directly from Eclipse, I select "Run" in menu. Then select
>> > "run" =>
>> > "sip-communicator-win" (the setting used is just as described in the
>> > tutorial page) => "Run" again.
>>
>> You talk about which tutorial page here?
>
> The one I wrote before. In here:
> http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse
>

the documentation you referenced is actually out of date, that's why
it's not referenced from the Developer Documentation page on
sip-communicator.org. Instead you should look at the following page:

http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipseNew

However on this page we don't have yet a tutorial about how to configure
"Run" and "Debug".

Maybe you could add it. I think it would be a short addition. I already able
to run my code in eclipse now, thanks again.

>>
>> > I've tried your suggestion and it work fine ( a little bit slow
>> though).
>> > But
>> > what about if we want to debug the code? About the method you
>> > mention, modified Felix properties in its lib directory, is there any
>> more
>> > detailed documentation?
>>
>> If you want to configure Eclipse to run and debug your application
using
>> the run and debug items you should do the following:
>> - in your project run configuration you should specify as a main
class
>> the org.apache.felix.main.Main
>> - in the VM arguments section you should add the following lines:
>>
>> -Dfelix.config.properties=file:lib/felix.client.run.properties
>> -Djava.util.logging.config.file=lib/logging.properties
>>
>> Is that what you were asking for?
>
> In my project run configuration I already set
> *Project:* sip-communicator
> *Main class:* net.java.sip.communicator.launcher.SIPCommunicator
> I don't think we could set two main classes, right? And also I cannot
> find the class org.apache.felix.main.Main.

You could keep that and just add the VM arguments. I've just tested it
and it works for me.

Yes, it worked. And it loads much faster compare to using "ant run". When
using ant run I could wait 3-4 minutes until the program loads. It took the
most time
In command: Querying device. Please wait...
In UI: Network address managment service

When using eclipse it only took seconds to load.

>> O, and maybe I could help in making user documentation.
>> >
>> That would be great!
>
> Is there any guideline on how to do it?

No there's no guideline, but you could have a look at the existing
documentation.

I'm thinking to write of what sip-communicator can and cannot do. I'll read
the existing documentation first, though.

Best regards,
Roiki

Yana

···

On 6/19/07, Yana Stamcheva <yana@sip-communicator.org> wrote:

> On 6/19/07, Yana Stamcheva <yana@sip-communicator.org> wrote:

> Thanks,
> Roiki
>
> Yana
>>
>> > Thanks.
>> >
>> > Best regards,
>> > Roiki
>> >
>> > On 6/19/07, Emil Ivov <emil.ivov@gmail.com> wrote:
>> >>
>> >> Hello Roiki,
>> >>
>> >> How do you run the project? You should use the ant run target. In
case
>> >> you'd like to run it differently then make sure that you tell felix
to
>> >> use the the felix.client.run.properties in the lib directory. You
can
>> do
>> >> so through the "felix.config.properties" system property or
otherwise
>> it
>> >> would simply launch an empty OSGi profile as it did for you.
>> >>
>> >> I'd strongly suggest that you use the build.xml run target though
>> as it
>> >> would help you avoid other environment problems.
>> >>
>> >> Hope this helps
>> >> Emil
>> >>
>> >> Roiki Guo wrote:
>> >> > Finally I'm able to build successfully.
>> >> >
>> >> > Thanks to Yana and Emil.
>> >> >
>> >> > Now, I'm trying to run the code. I've read the documentation here:
>> >> >
>> >>
>>
http://www.sip-communicator.org/index.php/Documentation/ConfigureEclipse
>> >> >
>> >> > When I run the program, in console tab I see "Welcome to Felix"
and
>> >> > "Enter profile name:". I entered random word and pressed enter.
But
>> the
>> >> > program won't show up. Any idea?
>> >> >
>> >> > Thanks.
>> >> >
>> >> > Best regards,
>> >> > Roiki
>> >> >
>> >> > On 6/19/07, *Emil Ivov* <emil.ivov@gmail.com > >> >> > <mailto:emil.ivov@gmail.com> > wrote:
>> >> >
>> >> > Hello Roiki,
>> >> >
>> >> > You should build your code one first time using ant (i.e. ant
>> >> build)and
>> >> > the file will be generated.
>> >> >
>> >> > Cheers
>> >> > Emil
>> >> >
>> >> > Roiki Guo wrote:
>> >> > > Hi Yana,
>> >> > > I've downloaded the latest .classpath file then, after
fixing
>> >> > some other
>> >> > > problems, Eclipse generates NightlyBuildID cannot be
resolved
>> >> error.
>> >> > >
>> >> > > Here's part of the code"
>> >> > >
>> >> > > *
>> >> > >
>> >> > > public
>> >> > >
>> >> > > * String getNightlyBuildID()
>> >> > >
>> >> > > {
>> >> > >
>> >> > > *if*(!isNightly())
>> >> > >
>> >> > > * return* * null*;
>> >> > >
>> >> > > *return* NightlyBuildID.BUILD_ID;
>> >> > >
>> >> > > }
>> >> > >
>> >> > > It's in VersionImpl.java line 135. Apparently
NightlyBuildID
>> is
>> >> not
>> >> > > declared any where in the code. Is the code missing or
should
>> I
>> >> > added by
>> >> > > myself?
>> >> > >
>> >> > > Thanks.
>> >> > >
>> >> > > Roiki
>> >> > >
>> >> > > On 6/18/07, *Yana Stamcheva* < yana@sip-communicator.org > >> >> > <mailto:yana@sip-communicator.org> > >> >> > > <mailto: yana@sip-communicator.org > >> >> > <mailto:yana@sip-communicator.org>>> wrote:
>> >> > >
>> >> > > Hi Roiki,
>> >> > >
>> >> > > I've just committed a fix of the .classpath file in the
>> >> > /ide/eclipse
>> >> > > directory. If you replace your project workspace
>> .classpath
>> >> > file with
>> >> > > this one it should work. Afterwards You should only add
>> your
>> >> > own ant.jar
>> >> > > to the list of libraries.
>> >> > >
>> >> > > Sorry for the inconvenience!
>> >> > > Yana
>> >> > >
>> >> > > Roiki Guo wrote:
>> >> > > > My current status is observer. I used windows and
>> >> eclipse.
>> >>
>> >> > When
>> >> > > building
>> >> > > > the
>> >> > > > source code, I got this error code:
>> >> > > > Severity and Description Path Resource Location
>> Creation
>> >> > Time Id
>> >> > > > Project sip-communicator is missing required
library:
>> >> > > 'sip-communicator.bin
>> >> > > >
>> >> > /bundle1/version0.0/embedded/kxml2- 2.2.2.jar
' sip-communicator
>> >> Build
>> >> > > > path 1182088372883 23
>> >> > > >
>> >> > > > I've checked the [project folder]\bin, the folder is
>> >> > empty. And I've
>> >> > > > searched for kxml2-2.2.2.jar in the project folder,
>> but
>> >> > without
>> >> > > result.
>> >> > > >
>> >> > > > What should I do?
>> >> > > >
>> >> > > > Thanks.
>> >> > > >
>> >> > > > Best regards,
>> >> > > > roscoe_x
>> >> > > >
>> >> > >
>> >> >
>> >>
---------------------------------------------------------------------
>> >> > > To unsubscribe, e-mail:
>> >> > > users-unsubscribe@sip-communicator.dev.java.net
>> >> > <mailto:users-unsubscribe@sip-communicator.dev.java.net>
>> >> > > <mailto:
users-unsubscribe@sip-communicator.dev.java.net
>> >> > <mailto:users-unsubscribe@sip-communicator.dev.java.net >>
>> >> > > For additional commands, e-mail:
>> >> > > users-help@sip-communicator.dev.java.net
>> >> > <mailto: users-help@sip-communicator.dev.java.net>
>> >> > > <mailto: users-help@sip-communicator.dev.java.net
>> >> > <mailto: users-help@sip-communicator.dev.java.net>>
>> >> > >
>> >> >
>> >>
---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail:
>> >> > users-unsubscribe@sip-communicator.dev.java.net
>> >> > <mailto:users-unsubscribe@sip-communicator.dev.java.net >
>> >> > For additional commands, e-mail:
>> >> > users-help@sip-communicator.dev.java.net
>> >> > <mailto: users-help@sip-communicator.dev.java.net>
>> >> >
>> >>
---------------------------------------------------------------------
>> >> To unsubscribe, e-mail:
>> users-unsubscribe@sip-communicator.dev.java.net
>> >> For additional commands, e-mail:
>> users-help@sip-communicator.dev.java.net
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
>> For additional commands, e-mail:
users-help@sip-communicator.dev.java.net
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net