作者:aglet( 4469206)
终于成功安装配置aglet平台,折磨了我一个晚上加半个白天的安装配置问题,终于解决了。
原来的问题是一直无法生成.keystore这个文件,导致总是build失败,现在的解决过程如下:
将aglet2.0.2版解压在e:\aglet里面,JDK5.0(包括JRE)安装在D:\java里面,环境变量(都在那个“hdwang的用户变量”窗口里面设置,其中hdwang为我的操作系统登录用户名)设置为:
AGLET_HOME=e:\aglet
AGLET_PATH=e:\aglet\public
ANT_HOME=e:\aglet
JAVA_HOME=d:\java
CLASSPATH=.;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib;e:\aglet;e:\aglet\public;e:\aglet\lib;e:\aglet\bin
path=C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;d:\Program Files\Microsoft Visual Studio\VC98\bin;%JAVA_HOME%bin;%JAVA_HOME%lib;%JAVA_HOME%jre;e:\aglet;e:\aglet\bin;e:\aglet\lib
注意路径设置好了之后,重启计算机才起了作用,
然后在dos界面下的e:\aglet\bin下面运行命令ant,显示信息如下:
///////////////////////////此行为自加的分界线//////////////////////////////////////
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\hdwang>e:
E:\>cd aglet
E:\aglet>cd bin
E:\aglet\bin>ant
Buildfile: build.xml
info:
[echo]
*** READ ME *** READ ME *** READ ME *** READ ME ***
In order to run the Aglet Server, you need to update
C:\Documents and Settings\hdwang/.java.policy with the grant entry
found in E:\aglet\bin/.java.policy.
You can simply place the .java.policy file in C:\Documents and Settings\hdwang.
The server also needs a java .keystore file. One has been provide
for you in this directory. The password is "aglets" (without quotes).
It contains a key for the server "aglet_key", and a key for an anonymous
user "anonymous". To use the keystore, copy it to C:\Documents and Settings\hdw
ang.
阅读(4741) | 评论(1) | 转发(0) |