Create a file whose name os "MyAglet.java" and input text.
public class MyAglet extends Aglet {
public void
run() {
System.out.println("Hello, world!");
}
}
2. Compile the source code
After you save the file. You can compile it by executing the following commands.
Command:
D:\work> set
CLASSPATH=d:\jdk1.1.6\lib\classes.zip;d:\Aglets1.1b\lib\aglets.jar
3. Execution
Start Tahiti
in a different session and create your aglet by specifying its name as
"trial.MyAglet".
After creating aglet, you can find a string "Hello, world!" on the
console.
Create a file whose name os "MyAglet.java" and input text.
public class MyAglet extends Aglet {
public void
run() {
System.out.println("Hello, world!");
}
}
2. Compile the source code
After you save the file. You can compile it by executing the following commands.
Command:
% setenv CLASSPATH=~/jdk1.1.6/lib/classes.zip:~/\Aglets1.1b/lib/aglets.jar
3. Execution
Start Tahiti
in a different session and create your aglet by specifying its name as
"trial.MyAglet".
After creating aglet, you can find a string "Hello, world!" on the
console.