Hi, I have just searched the archives, but not found a answer. In the servlet I use an applet as user interface. Under development kit jswdk-1.0, servlet could not found JSwingTable.class (just an applet). In Java Console, I got a following information (using IE 5.0, WinNT 4.0): load: class JDBCTable not found. java.lang.ClassNotFoundException: java.io.FileNotFoundException: http://localhost:8080/servlet/JSwingTable.class at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ................... But I put the JSwingTable.class in the same directory as the servlet. Also I have tried to put JSwingTable.class under other directories, for examples \jswdk-1.0\; \jswdk-1.0\webpages; \jswdk-1.0\webpages\web-info, but it the problem still exists. Following is my servlet code. Any help is appreciated! Hua ========================================================== import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class HTMLServlet extends HttpServlet { public void init(ServletConfig config) throws ServletException { } public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/plain"); PrintWriter out = res.getWriter(); out.println("<HTML>"); out.println("<HEAD>"); out.println("<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;CHARSET=iso-8859-1\">"); out.println("<TITLE>Test Applet in Servlet</TITLE>"); out.println("</HEAD>"); out.println("<BODY BGCOLOR=\"silver\" LINK=\"blue\" VLINK=\"purple\">"); out.println("<P>"); out.println("<CENTER>"); out.println("<OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\""); out.println("WIDTH = 550 HEIGHT = 500 ALIGN = CENTER codebase=\"http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Ver sion=1,3,0,0\">"); out.println("<PARAM NAME = CODE VALUE = JSwingTable >"); out.println("<PARAM NAME=\"type\" VALUE=\"application/x-java-applet;version=1.3\">"); out.println("<PARAM NAME=\"scriptable\" VALUE=\"false\">"); out.println("<COMMENT>"); out.println("<EMBED type=\"application/x-java-applet;version=1.3\" CODE = JSwingTable WIDTH = 550 HEIGHT = 500 ALIGN = CENTER scriptable=false pluginspage=\"http://java.sun.com/products/plugin/1.3/plugin-install.html\"> <NOEMBED></COMMENT>"); out.println("</NOEMBED></EMBED>"); out.println("</OBJECT>"); out.println("</CENTER>"); out.println("</BODY>"); out.println("</HTML>"); } } ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
