Serv;lets can only communicate with the client via HTML, although this can include other content such as JavaScript and images. You cannot directly run Java on the client machine unless you use an Applet or other form of client-side Java.