make sure that aglet is installed in your computer properly.
go to dir which u want to compile:
then type like this :
javac -classpath .;c:\aglets\lib\aglet.2.0.2.jar;c:\agelts\public sample\*.java
c:\aglets\lib\aglet2.0.2.jar is directory aglet jar
c:\aglets\public sample\*.java is directory u want to compile with all file with extension .java will be compiled
hope this helpfull.