1. Download the open-source IBM aglets
Http://sourceforge.net/projects/aglets/ here can be downloaded to aglets-2.0.2.jar and aglets-2.0.2-src.jar, there is a help document aglets_amanual.pdf
2. Install aglets on Windows
(1) install JDK first. The installation path is C:/Java/JDK. Configure the environment variable java_home = C:/Java/JDK classpath = .; % java_home %/LIB; % java_home %/JRE/LIB; % java_home %/bin added to path
(2) decompress the aglets-2.0.2.jar to C:/Java/aglets. From the command to the C:/Java/aglets/bin directory, run ant. bat
Note: When I install the JDK path deeply, an error occurs when I run ant. bat. For example, I installed JDK in D:/program files/Java/JDK. After installing aglets, I typed ant. for bat commands, "d:/Program" is neither a system command nor an internal command. I don't know why. However, this issue does not occur if JDK is installed in a shortest path.
The main function of running ant. bat is to generate two files:. java. Policy and. keystore. Then run ant install-home on the command line to copy the two files to the C:/Documents ents and settings/Administrator directory, or manually copy them. Note: I log on as administrator. If I log on with another user name such as Arong, copy the two files to the corresponding directory c:/Documents ents and settings/arong.
Configure the environment variable: aglet_home = C:/Java/aglets add % aglet_home %/bin after the environment variable path. The installation is complete. You can run the agletsd command to start Tahiti.
3. Install aglets on Linux.
The document aglets_amanual.pdf provides detailed descriptions. After decompression, chmod 755/usr/Java/aglets/bin/ant can run the ant command to generate. java. policy and. keystore: in Linux, there are two hidden files. Run the ant install-home command to copy these two files to the/root/directory. You also need to configure environment variables. For details, see the aglets_amamual.pdf file.
4. RunProgram
The self-written aglet program is usually placed under % aglet_home %/public/. After Tahiti is started, create aglets using the CREATE Command.