The Use of JADE (Java Agent DEvelopment Framework)

Basic Introduction

JADE, the Java Agent DEvelopment framework, is a software framework fully implemented in Java language. It complies with the FIPA specifications and can be distributed in across machines, which not even need to share the same OS (operating system). Also, the communication architecture of JADE is flexible and efficient, with lots of modes available, such as blocking, polling, and timeout.

Further details can be found at http://jade.tilab.com/.

How to install it (Starting JADE)

  1. Download them in http://jade.tilab.com/download/jade/, after download the JADE zip, uncompress it. The contained files are as follow:
    这里写图片描述
    Figure 1. The structure of JADE files

  2. Open cmd in Windows OS, then run “java -cp lib\jade.jar jade.Boot -gui” in the folder containing JADE.jar. The result is as follows:
    这里写图片描述
    Figure 2. The management GUI of JADE

To shut down the platform, just click “File”-“shut down agent platform” in the management GUI, and then select “Yes” when asked for confirmation.

  1. If you want to run examples in JADE-examples-4.5.0, such as PingAgent. You are suggested to install “ANT” in your machine first.

Specifically, download ANT.bin in https://ant.apache.org/bindownload.cgi.

Note that my jdk version is JDK 10. However, JDK 10 has removed the tools.jar, which is indispensable for running ANT. I attempted to search solutions from both Baidu and Google but failed. To address this problem, I download JDK 1.7 (for window X64) from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html (You need to freely creat an account if you do not have one, in order to download JDK).

Configure environment variables of JDK 1.7:
@1 CLASSPATH: %JAVA_HOME%lib\tools.jar; %JAVA_HOME%lib
@2 JAVA_HOME: C:\Program Files\Java\jdk1.7.0_80
@3 Path: %JAVA_HOME%jre\bin %JAVA_HOME%bin

There is a problem here. Because I configured JDK 9 in my computer before, I cannot correctly configure JDK 1.7 in my PC even though I did the three steps described before.

After hard search, the solution is:

  1. when configuring environment variables, delete “C:\ProgramData\Oracle\Java\javapath” in the path
    这里写图片描述

  2. then do the three steps. And run “java -version”
    这里写图片描述

写作时间:2018-06-12

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值