now i am using apache server.
i have put class file in root directory of server which is accessible to browser. i hava also stored images in that directory . the images are accessed but class file is not found by browser.
my code for servlet is
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class hmpageserv extends HttpServlet
{
public void doGet (HttpServletRequest req,HttpServletResponse resp)
{
System.out.println("Servlet Started");
String s1="\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\"";
try
{
resp.setContentType("text/html");
PrintWriter pw=resp.getWriter();
String str="<html><body><OBJECT classid="+s1+" HEIGHT = 480 WIDTH = 760 >"
+"<PARAM NAME = CODE VALUE =
http://127.0.0.1\\hmpage ></OBJECT>"
+"<APPLET CODE =http://127.0.0.1\\hmpage CODEBASE =\"http://127.0.0.1\\""
+ "ARCHIVE =\"http://127.0.0.1\\hmpage.jar\" HEIGHT = 480 WIDTH = 760 >"
+"</APPLET>"
+" </body>"
+"</html>";
System.out.println(str);
pw.println(str);
pw.close();
}catch(Exception e){System.out.println("error"+e);}
}
}