Publishing Applets at UIC
Mtht 420
Before posting your applet, you should have:
- A completed Java applet, say Applet.java.
- The compiled Applet.class code.
- An Applet.html file that you can view using a command like
appletviewer Applet.html.
You will save yourself a lot of trouble if you have all of these
working correctly before you start. When you are ready, perform the
following steps:
- Start the ftp network utility.
- Connect to icarus.cc.uic.edu using your username and password.
- Change to your public_html directory on icarus. (If you have
trouble, see note below.)
- Find your Applet.class and Applet.html files on your local
machine.
- Copy those two files (and the Applet.java file as well, if you
like) to icarus.
- Exit ftp.
- Start a web browser and view your applet using the URL
http://www2.uic.edu/~netid/Applet.html, where netid
is replaced with your netid. (If you have trouble, see note below.)
If you do not have a public_html directory, telnet to icarus and execute the
follwing commands:
chmod a+x .
mkdir public_html
chmod a+x public_html
chmod a+r public_html
These commands will create a public_html directory and allow people to
access the web pages you put in it.
If you are unable to view your web pages, first check the spelling and
capitalization of your filenames. Then make sure you put them in your
public_html directory on icarus, and not in the top level of your
account. Then try telnetting to
icarus and running the follwing commands:
chmod a+x public_html/*
chmod a+r public_html/*
These commands will allow remote browsers to read and run the files in
your public_html directory.
Mtht 480