Discussion:
[jade-develop] Problem running JADE examples
Vaso Elefth
2011-12-05 12:32:18 UTC
Permalink
Hi.
I am a new Jade user and I am desperate for an answer.

I am trying to run the HelloWorldAgent example but I keep receiving the
following message.

c:\jade\src\examples\hello>
java jade.Boot fred:HelloWorldAgent
Error creating the Profile [Can't load properties: Cannot find file
fred:HelloWorldAgent]
jade.core.ProfileException: Can't load properties: Cannot find file
fred:HelloWorldAgent
at jade.core.ProfileImpl.<init>(ProfileImpl.java:131)
at jade.Boot.main(Boot.java:76)
Usage:
java -cp <classpath> jade.Boot [options] [agents]
Main options:
-container
-gui
-name <platform name>
-host <main container host>
-port <main container port>
-local-host <host where to bind the local server socket on>
-local-port <port where to bind the local server socket on>
-conf <property file to load configuration properties from>
-services <semicolon separated list of service classes>
-mtps <semicolon separated list of mtp-specifiers>
where mtp-specifier = [in-address:]<mtp-class>[(comma-separated args)]
-<property-name> <property-value>
Agents: [-agents] <semicolon separated list of agent-specifiers>
where agent-specifier = <agent-name>:<agent-class>[(comma separated
args)]

Look at the JADE Administrator's Guide for more details

I have also used "java jade.Boot -agents fred:HelloWorldAgent" and doesn't
work.
I compiled it using both javac and ant but the same thing happens.

I have set the classpath to have the jade.jar, commons_codec.jar, Base
64.jar,
and the HelloWorldAgent.class file. From my lib folder the http.jar,
iiop.jar
and jadeTools.jar ars missing, they weren't there when I downloaded the
jade_all
zip.
What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20111205/1e83f0fe/attachment.html>
Caire Giovanni
2011-12-07 10:02:10 UTC
Permalink
Hi,

Be sure the JADE examples have been compiled.
Be sure JADE classes AND jade examples classes are in the classpath

Type
java jade.Boot -agents fred:examples.hello.HelloWorldAgent

Note the -agents option and the fully qualified class name.

Bye,

Giovanni

Da: jade-develop-bounces at avalon.tilab.com [mailto:jade-develop-bounces at avalon.tilab.com] Per conto di Vaso Elefth
Inviato: luned? 5 dicembre 2011 13:32
A: jade-develop at avalon.tilab.com
Oggetto: [jade-develop] Problem running JADE examples

Hi.
I am a new Jade user and I am desperate for an answer.

I am trying to run the HelloWorldAgent example but I keep receiving the
following message.

c:\jade\src\examples\hello>
java jade.Boot fred:HelloWorldAgent
Error creating the Profile [Can't load properties: Cannot find file
fred:HelloWorldAgent]
jade.core.ProfileException: Can't load properties: Cannot find file
fred:HelloWorldAgent
at jade.core.ProfileImpl.<init>(ProfileImpl.java:131)
at jade.Boot.main(Boot.java:76)
Usage:
java -cp <classpath> jade.Boot [options] [agents]
Main options:
-container
-gui
-name <platform name>
-host <main container host>
-port <main container port>
-local-host <host where to bind the local server socket on>
-local-port <port where to bind the local server socket on>
-conf <property file to load configuration properties from>
-services <semicolon separated list of service classes>
-mtps <semicolon separated list of mtp-specifiers>
where mtp-specifier = [in-address:]<mtp-class>[(comma-separated args)]
-<property-name> <property-value>
Agents: [-agents] <semicolon separated list of agent-specifiers>
where agent-specifier = <agent-name>:<agent-class>[(comma separated args)]

Look at the JADE Administrator's Guide for more details

I have also used "java jade.Boot -agents fred:HelloWorldAgent" and doesn't work.
I compiled it using both javac and ant but the same thing happens.

I have set the classpath to have the jade.jar, commons_codec.jar, Base 64.jar,
and the HelloWorldAgent.class file. From my lib folder the http.jar, iiop.jar
and jadeTools.jar ars missing, they weren't there when I downloaded the jade_all
zip.
What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20111207/fda6b0b3/attachment.html>
Vaso Elefth
2011-12-05 12:32:18 UTC
Permalink
Hi.
I am a new Jade user and I am desperate for an answer.

I am trying to run the HelloWorldAgent example but I keep receiving the
following message.

c:\jade\src\examples\hello>
java jade.Boot fred:HelloWorldAgent
Error creating the Profile [Can't load properties: Cannot find file
fred:HelloWorldAgent]
jade.core.ProfileException: Can't load properties: Cannot find file
fred:HelloWorldAgent
at jade.core.ProfileImpl.<init>(ProfileImpl.java:131)
at jade.Boot.main(Boot.java:76)
Usage:
java -cp <classpath> jade.Boot [options] [agents]
Main options:
-container
-gui
-name <platform name>
-host <main container host>
-port <main container port>
-local-host <host where to bind the local server socket on>
-local-port <port where to bind the local server socket on>
-conf <property file to load configuration properties from>
-services <semicolon separated list of service classes>
-mtps <semicolon separated list of mtp-specifiers>
where mtp-specifier = [in-address:]<mtp-class>[(comma-separated args)]
-<property-name> <property-value>
Agents: [-agents] <semicolon separated list of agent-specifiers>
where agent-specifier = <agent-name>:<agent-class>[(comma separated
args)]

Look at the JADE Administrator's Guide for more details

I have also used "java jade.Boot -agents fred:HelloWorldAgent" and doesn't
work.
I compiled it using both javac and ant but the same thing happens.

I have set the classpath to have the jade.jar, commons_codec.jar, Base
64.jar,
and the HelloWorldAgent.class file. From my lib folder the http.jar,
iiop.jar
and jadeTools.jar ars missing, they weren't there when I downloaded the
jade_all
zip.
What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20111205/1e83f0fe/attachment-0005.html>
Caire Giovanni
2011-12-07 10:02:10 UTC
Permalink
Hi,

Be sure the JADE examples have been compiled.
Be sure JADE classes AND jade examples classes are in the classpath

Type
java jade.Boot -agents fred:examples.hello.HelloWorldAgent

Note the -agents option and the fully qualified class name.

Bye,

Giovanni

Da: jade-develop-bounces at avalon.tilab.com [mailto:jade-develop-bounces at avalon.tilab.com] Per conto di Vaso Elefth
Inviato: luned? 5 dicembre 2011 13:32
A: jade-develop at avalon.tilab.com
Oggetto: [jade-develop] Problem running JADE examples

Hi.
I am a new Jade user and I am desperate for an answer.

I am trying to run the HelloWorldAgent example but I keep receiving the
following message.

c:\jade\src\examples\hello>
java jade.Boot fred:HelloWorldAgent
Error creating the Profile [Can't load properties: Cannot find file
fred:HelloWorldAgent]
jade.core.ProfileException: Can't load properties: Cannot find file
fred:HelloWorldAgent
at jade.core.ProfileImpl.<init>(ProfileImpl.java:131)
at jade.Boot.main(Boot.java:76)
Usage:
java -cp <classpath> jade.Boot [options] [agents]
Main options:
-container
-gui
-name <platform name>
-host <main container host>
-port <main container port>
-local-host <host where to bind the local server socket on>
-local-port <port where to bind the local server socket on>
-conf <property file to load configuration properties from>
-services <semicolon separated list of service classes>
-mtps <semicolon separated list of mtp-specifiers>
where mtp-specifier = [in-address:]<mtp-class>[(comma-separated args)]
-<property-name> <property-value>
Agents: [-agents] <semicolon separated list of agent-specifiers>
where agent-specifier = <agent-name>:<agent-class>[(comma separated args)]

Look at the JADE Administrator's Guide for more details

I have also used "java jade.Boot -agents fred:HelloWorldAgent" and doesn't work.
I compiled it using both javac and ant but the same thing happens.

I have set the classpath to have the jade.jar, commons_codec.jar, Base 64.jar,
and the HelloWorldAgent.class file. From my lib folder the http.jar, iiop.jar
and jadeTools.jar ars missing, they weren't there when I downloaded the jade_all
zip.
What am I doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jade.tilab.com/pipermail/jade-develop/attachments/20111207/fda6b0b3/attachment-0005.html>
Loading...