-
Choose the Web document directory in which you will install
the applet and other classes. Modify the codebase property
in FileServer.html accordingly.
-
Choose a port number on which your RMI registry will listen (between
1024 and 64K). Modify
the port parameter in filedisplay.html accordingly.
-
Choose the name of your data file. Modify
the file parameter in filedisplay.html accordingly.
-
Compile all code:
javac FileSourceImpl.java
rmic FileSourceImpl
javac FileServer.java
javac FileDisplay.java
-
Make the class files world readable:
chmod o+r *.class
-
Convert the HTML if you will be viewing the applet using the Java Plug-in:
htmlconv filedisplay.html -backup BAK
-
Make sure this directory and the HTML are readable:
chmod o+r .
chmod o+r filedisplay.html
-
Make sure your data file exists in this directory.
-
Run the file server program
java FileServer XXXX
where XXXX is the port number you chose earlier.
You should be able to view the applet from any computer, so long as the
file server program is running on