Install and configure aglets

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.