[sip-comm-dev] exporting project --> .jar


#1

Hi all,

have a little question.. from my Eclipse I tried to export the
sip-communicator project into a .jar but since there's no main class the
export failed... I also saw the recommandation for building a
sip-communicator installer but I think that's not what I'm needing.. maybe I
say wrong... Actually I want to have a jar file of my project and to be able
to run it from another pc so how can I do that?

Thanks a lot for helping me.


#2

Hello asmouta,

It would be quite delicate to run SIP Communicator from one single jar file. This would require a lot of modifications to the existing structure, so you'd better keep all bundles separated as they currently are.

Once you execute the "ant build" target all SC jar-s are created in the sc-bundles directory of your project. You'd need to get all of them, together with some of the libs (those _directly_ underneath the lib directory and possibly some of the natives) in order to run the application.

The installer tutorial that you are referring to

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

describes in a very detailed way the environment (dependencies and directory structure) that SIP Communicator needs in order to execute properly, so in case you cannot use any of the installers that the build.xml allows you to build (i.e. exe, deb, dmg, rpm, and jar), you'd need to go over the tutorial and get acquainted with it so that you could customize the environment in a way that suits you.

Cheers
Emil

asmouta wrote:

···

Hi all,

have a little question.. from my Eclipse I tried to export the sip-communicator project into a .jar but since there's no main class the export failed... I also saw the recommandation for building a sip-communicator installer but I think that's not what I'm needing.. maybe I say wrong... Actually I want to have a jar file of my project and to be able to run it from another pc so how can I do that?

Thanks a lot for helping me.

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


#3

Hi Emil,

thanks for replying. I still have a little question, do you mean by
HowToBuildAnInstaller how to build the .bin executable?? Such as the binary
available for download in sip-communicator website?? Because that's all I
need, a .bin file, but I thought that the tutorial is focusing on another
matter... :smiley:

Best regards.

···

On 5/30/07, Emil Ivov <emcho@emcho.com> wrote:

Hello asmouta,

It would be quite delicate to run SIP Communicator from one single jar
file. This would require a lot of modifications to the existing
structure, so you'd better keep all bundles separated as they currently
are.

Once you execute the "ant build" target all SC jar-s are created in the
sc-bundles directory of your project. You'd need to get all of them,
together with some of the libs (those _directly_ underneath the lib
directory and possibly some of the natives) in order to run the
application.

The installer tutorial that you are referring to

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

describes in a very detailed way the environment (dependencies and
directory structure) that SIP Communicator needs in order to execute
properly, so in case you cannot use any of the installers that the
build.xml allows you to build (i.e. exe, deb, dmg, rpm, and jar), you'd
need to go over the tutorial and get acquainted with it so that you
could customize the environment in a way that suits you.

Cheers
Emil

asmouta wrote:
> Hi all,
>
> have a little question.. from my Eclipse I tried to export the
> sip-communicator project into a .jar but since there's no main class the
> export failed... I also saw the recommandation for building a
> sip-communicator installer but I think that's not what I'm needing..
> maybe I say wrong... Actually I want to have a jar file of my project
> and to be able to run it from another pc so how can I do that?
>
> Thanks a lot for helping me.

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


#4

Hello asmouta,

asmouta wrote:

Hi Emil,

thanks for replying. I still have a little question, do you mean by HowToBuildAnInstaller how to build the .bin executable?? Such as the binary available for download in sip-communicator website?? Because that's all I need, a .bin file, but I thought that the tutorial is focusing on another matter... :smiley:

The installer tutorial describes the environment that SIP Communicator needs in order to run so that people building installers would know how to deploy the application.

Emil

···

Best regards.

On 5/30/07, *Emil Ivov* <emcho@emcho.com <mailto:emcho@emcho.com>> wrote:

    Hello asmouta,

    It would be quite delicate to run SIP Communicator from one single jar
    file. This would require a lot of modifications to the existing
    structure, so you'd better keep all bundles separated as they
    currently are.

    Once you execute the "ant build" target all SC jar-s are created in the
    sc-bundles directory of your project. You'd need to get all of them,
    together with some of the libs (those _directly_ underneath the lib
    directory and possibly some of the natives) in order to run the
    application.

    The installer tutorial that you are referring to

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

    describes in a very detailed way the environment (dependencies and
    directory structure) that SIP Communicator needs in order to execute
    properly, so in case you cannot use any of the installers that the
    build.xml allows you to build (i.e. exe, deb, dmg, rpm, and jar), you'd
    need to go over the tutorial and get acquainted with it so that you
    could customize the environment in a way that suits you.

    Cheers
    Emil

    asmouta wrote:
     > Hi all,
     >
     > have a little question.. from my Eclipse I tried to export the
     > sip-communicator project into a .jar but since there's no main
    class the
     > export failed... I also saw the recommandation for building a
     > sip-communicator installer but I think that's not what I'm needing..
     > maybe I say wrong... Actually I want to have a jar file of my
    project
     > and to be able to run it from another pc so how can I do that?
     >
     > Thanks a lot for helping me.

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

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