First, is your Test.class an applet or a servlet?  An appliet runs in a browser's virtual machine.  A servlet runs in the backend Java-enalbed web server such as Tomcat4.1.To "publish" your code as an applet, place a link to it in a webpage.  If it is a servlet, you need to "deploy" it into Tomcat.For applet, see http://java.sun.com/docs/books/tutorial/applet/TOC.html#appletsonlyFor servlet, see your Tomcat's documentation.