Quantcast

Re: Jason-users Digest, Vol 69, Issue 1

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jason-users Digest, Vol 69, Issue 1

Salvatore Lopes
Thank you Jomi for your answer, but your hint does not resolve the problem. In fact, the executable jar still uses the Centralised  and not the JaCaMO architecture, and the agent can not create any artifact and even execute an 
?current_wsp()..... 
I work for the National Research Council of Italy and we are developing a prototype using JaCaMO architecture and so we need to produce a stand-alone application. 
Thank you again,
Salvatore 

On Thu, Apr 2, 2015 at 9:00 PM, <[hidden email]> wrote:
Send Jason-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/jason-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Jason-users digest..."


Today's Topics:

   1. new release of Jason (1.4.2) (Jomi Hubner)
   2. how to get a jar executable of a jason application
      (Salvatore Lopes)
   3. Re: how to get a jar executable of a jason application
      (Jomi Fred H?bner)
   4. Re: how to get a jar executable of a jason application
      (Jomi Fred H?bner)


----------------------------------------------------------------------

Message: 1
Date: Mon, 2 Mar 2015 08:37:13 -0300
From: Jomi Hubner <[hidden email]>
Subject: [Jason-users] new release of Jason (1.4.2)
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=utf-8

Dear all,

We have just released the version 1.4.2 of Jason! This release fixes some bugs and includes REPL features in MASConsole (http://en.wikipedia.org/wiki/Read?eval?print_loop).

To download the new version please go to:

        https://sourceforge.net/projects/jason/files/jason/version%201.4.2

Best wishes,

Jomi and Rafael


------------------------------

Message: 2
Date: Fri, 27 Mar 2015 15:38:54 +0100
From: Salvatore Lopes <[hidden email]>
Subject: [Jason-users] how to get a jar executable of a jason
        application
To: [hidden email]
Message-ID:
        <CA+0zNjWuVC-MgoX5mvjgdt4GCn=Kmq9jHkSJQ19KTz=[hidden email]>
Content-Type: text/plain; charset="utf-8"

Hello,
i am trying to get a jason application executable outside eclipse. Is there
any option in the jason plugin to produce an executable jar ?
Greetings,
Salvatore Lopes
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Fri, 27 Mar 2015 12:15:33 -0300
From: Jomi Fred H?bner <[hidden email]>
Subject: Re: [Jason-users] how to get a jar executable of a jason
        application
To: Salvatore Lopes <[hidden email]>
Cc: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

Hi Salvatore,

you can always run a jason application using Ant:

        cd <your app directory>/bin
        ant

using Ant, you can also produce a single jar (1):

        ant jar

and a <project_name>.jar file is created. You can double-click on it to run.

HTH,

Jomi

(1) Once you have the bin/build.xml in your project, you can run the task ?jar? also from eclipse.

> On 27/03/2015, at 11:38, Salvatore Lopes <[hidden email]> wrote:
>
> Hello,
> i am trying to get a jason application executable outside eclipse. Is there any option in the jason plugin to produce an executable jar ?
> Greetings,
> Salvatore Lopes
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/_______________________________________________
> Jason-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jason-users

--
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florian?polis, SC
88040-900 Brazil
http://www.das.ufsc.br/~jomi

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Thu, 2 Apr 2015 15:59:52 -0300
From: Jomi Fred H?bner <[hidden email]>
Subject: Re: [Jason-users] how to get a jar executable of a jason
        application
To: Salvatore Lopes <[hidden email]>,
        [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

Hi Salvatore,

Indeed, this feature (a runnable single jar) only makes sense in centralised infrastructure. But you can include cartago and other jars into your application jar:

1. open the bin/build.xml in an editor
2. search for the jar task
3. after the lines

            <fileset dir="${build.dir}">
                <include name="**/*.class" />
            </fileset>

include:
            <zipgroupfileset dir="${basedir}/lib" includes="**/*.jar" />
            <zipgroupfileset dir="${jasonJar}/../../lib" includes="cartago.jar, c4jason.jar, moise.jar" />


4. the application jar will include all the classes from the above jar files.

HTH,

Jomi

ps.: the next release of Jason in include this improvement.


> On 01/04/2015, at 08:03, Salvatore Lopes <[hidden email]> wrote:
>
> Thank you for the last hint, but I did not achieve what I wanted to do. I am trying to build a jar executable application where an agent creates an artifact. When I run the project in JEdit or Eclipse it does work without problem, but when I run the generated jar i i got an error about "?current_wsp(Id,_,_). Where did I miss something in the process of creating the jar ? It Seems to me that the produced jar is able to work only for Centralised Infrastructure and not JaCaMo. May you help me ?
> Thank in advance,
> Salvatore Lopes
>
> On Fri, Mar 27, 2015 at 4:15 PM, Jomi Fred H?bner <[hidden email] <mailto:[hidden email]>> wrote:
> Hi Salvatore,
>
> you can always run a jason application using Ant:
>
>       cd <your app directory>/bin
>       ant
>
> using Ant, you can also produce a single jar (1):
>
>       ant jar
>
> and a <project_name>.jar file is created. You can double-click on it to run.
>
> HTH,
>
> Jomi
>
> (1) Once you have the bin/build.xml in your project, you can run the task ?jar? also from eclipse.
>
>> On 27/03/2015, at 11:38, Salvatore Lopes <[hidden email] <mailto:[hidden email]>> wrote:
>>
>> Hello,
>> i am trying to get a jason application executable outside eclipse. Is there any option in the jason plugin to produce an executable jar ?
>> Greetings,
>> Salvatore Lopes
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/_______________________________________________ <http://goparallel.sourceforge.net/_______________________________________________>
>> Jason-users mailing list
>> [hidden email] <mailto:[hidden email]>
>> https://lists.sourceforge.net/lists/listinfo/jason-users <https://lists.sourceforge.net/lists/listinfo/jason-users>
>
> --
> Jomi Fred Hubner
> Federal University of Santa Catarina
> Department of Automation and Systems Engineering
> PO Box 476, Florian?polis, SC
> 88040-900 Brazil
> http://www.das.ufsc.br/~jomi <http://www.das.ufsc.br/~jomi>
>

--
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florian?polis, SC
88040-900 Brazil
http://www.das.ufsc.br/~jomi

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/

------------------------------

_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users


End of Jason-users Digest, Vol 69, Issue 1
******************************************


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jason-users Digest, Vol 69, Issue 1

Jomi Fred Hübner
Salvatore, 

you have to move to the centralised infrastructure to use this feature! One solution is the “old” style for .mas2j projects:

    environment: c4jason.CartagoEnvironment

    agents:  
   producer agentArchClass c4jason.CAgentArch #2;
    consumer agentArchClass c4jason.CAgentArch #3;


HTH,

Jomi

On 03/04/2015, at 05:41, Salvatore Lopes <[hidden email]> wrote:

Thank you Jomi for your answer, but your hint does not resolve the problem. In fact, the executable jar still uses the Centralised  and not the JaCaMO architecture, and the agent can not create any artifact and even execute an 
?current_wsp()..... 
I work for the National Research Council of Italy and we are developing a prototype using JaCaMO architecture and so we need to produce a stand-alone application. 
Thank you again,
Salvatore 

On Thu, Apr 2, 2015 at 9:00 PM, <[hidden email]> wrote:
Send Jason-users mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/jason-users
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Jason-users digest..."


Today's Topics:

   1. new release of Jason (1.4.2) (Jomi Hubner)
   2. how to get a jar executable of a jason application
      (Salvatore Lopes)
   3. Re: how to get a jar executable of a jason application
      (Jomi Fred H?bner)
   4. Re: how to get a jar executable of a jason application
      (Jomi Fred H?bner)


----------------------------------------------------------------------

Message: 1
Date: Mon, 2 Mar 2015 08:37:13 -0300
From: Jomi Hubner <[hidden email]>
Subject: [Jason-users] new release of Jason (1.4.2)
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=utf-8

Dear all,

We have just released the version 1.4.2 of Jason! This release fixes some bugs and includes REPL features in MASConsole (http://en.wikipedia.org/wiki/Read?eval?print_loop).

To download the new version please go to:

        https://sourceforge.net/projects/jason/files/jason/version%201.4.2

Best wishes,

Jomi and Rafael


------------------------------

Message: 2
Date: Fri, 27 Mar 2015 15:38:54 +0100
From: Salvatore Lopes <[hidden email]>
Subject: [Jason-users] how to get a jar executable of a jason
        application
To: [hidden email]
Message-ID:
        <CA+0zNjWuVC-MgoX5mvjgdt4GCn=Kmq9jHkSJQ19KTz=[hidden email]>
Content-Type: text/plain; charset="utf-8"

Hello,
i am trying to get a jason application executable outside eclipse. Is there
any option in the jason plugin to produce an executable jar ?
Greetings,
Salvatore Lopes
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Fri, 27 Mar 2015 12:15:33 -0300
From: Jomi Fred H?bner <[hidden email]>
Subject: Re: [Jason-users] how to get a jar executable of a jason
        application
To: Salvatore Lopes <[hidden email]>
Cc: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

Hi Salvatore,

you can always run a jason application using Ant:

        cd <your app directory>/bin
        ant

using Ant, you can also produce a single jar (1):

        ant jar

and a <project_name>.jar file is created. You can double-click on it to run.

HTH,

Jomi

(1) Once you have the bin/build.xml in your project, you can run the task ?jar? also from eclipse.

> On 27/03/2015, at 11:38, Salvatore Lopes <[hidden email]> wrote:
>
> Hello,
> i am trying to get a jason application executable outside eclipse. Is there any option in the jason plugin to produce an executable jar ?
> Greetings,
> Salvatore Lopes
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/_______________________________________________
> Jason-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jason-users

--
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florian?polis, SC
88040-900 Brazil
http://www.das.ufsc.br/~jomi

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 4
Date: Thu, 2 Apr 2015 15:59:52 -0300
From: Jomi Fred H?bner <[hidden email]>
Subject: Re: [Jason-users] how to get a jar executable of a jason
        application
To: Salvatore Lopes <[hidden email]>,
        [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

Hi Salvatore,

Indeed, this feature (a runnable single jar) only makes sense in centralised infrastructure. But you can include cartago and other jars into your application jar:

1. open the bin/build.xml in an editor
2. search for the jar task
3. after the lines

            <fileset dir="${build.dir}">
                <include name="**/*.class" />
            </fileset>

include:
            <zipgroupfileset dir="${basedir}/lib" includes="**/*.jar" />
            <zipgroupfileset dir="${jasonJar}/../../lib" includes="cartago.jar, c4jason.jar, moise.jar" />


4. the application jar will include all the classes from the above jar files.

HTH,

Jomi

ps.: the next release of Jason in include this improvement.


> On 01/04/2015, at 08:03, Salvatore Lopes <[hidden email]> wrote:
>
> Thank you for the last hint, but I did not achieve what I wanted to do. I am trying to build a jar executable application where an agent creates an artifact. When I run the project in JEdit or Eclipse it does work without problem, but when I run the generated jar i i got an error about "?current_wsp(Id,_,_). Where did I miss something in the process of creating the jar ? It Seems to me that the produced jar is able to work only for Centralised Infrastructure and not JaCaMo. May you help me ?
> Thank in advance,
> Salvatore Lopes
>
> On Fri, Mar 27, 2015 at 4:15 PM, Jomi Fred H?bner <[hidden email] <mailto:[hidden email]>> wrote:
> Hi Salvatore,
>
> you can always run a jason application using Ant:
>
>       cd <your app directory>/bin
>       ant
>
> using Ant, you can also produce a single jar (1):
>
>       ant jar
>
> and a <project_name>.jar file is created. You can double-click on it to run.
>
> HTH,
>
> Jomi
>
> (1) Once you have the bin/build.xml in your project, you can run the task ?jar? also from eclipse.
>
>> On 27/03/2015, at 11:38, Salvatore Lopes <[hidden email] <mailto:[hidden email]>> wrote:
>>
>> Hello,
>> i am trying to get a jason application executable outside eclipse. Is there any option in the jason plugin to produce an executable jar ?
>> Greetings,
>> Salvatore Lopes
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/_______________________________________________ <http://goparallel.sourceforge.net/_______________________________________________>
>> Jason-users mailing list
>> [hidden email] <mailto:[hidden email]>
>> https://lists.sourceforge.net/lists/listinfo/jason-users <https://lists.sourceforge.net/lists/listinfo/jason-users>
>
> --
> Jomi Fred Hubner
> Federal University of Santa Catarina
> Department of Automation and Systems Engineering
> PO Box 476, Florian?polis, SC
> 88040-900 Brazil
> http://www.das.ufsc.br/~jomi <http://www.das.ufsc.br/~jomi>
>

--
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florian?polis, SC
88040-900 Brazil
http://www.das.ufsc.br/~jomi

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/

------------------------------

_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users


End of Jason-users Digest, Vol 69, Issue 1
******************************************

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users

-- 
Jomi Fred Hubner
Federal University of Santa Catarina
Department of Automation and Systems Engineering
PO Box 476, Florianópolis, SC
88040-900 Brazil


------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Jason-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jason-users
Loading...