Respected Sir, I need to display a set of gui screen using tomcat.I know i should create an applet which I have done.I have got the set of class files and I have also created a jar file.Can I copy the the jar file in the lib directory and start the application.I just need to display the GUI first. Is that enough?
Not quite enough. You need an HTML page that contains the applet tag (the Applet FAQ has some hints on that), and you can't put applet classes inside of WEB-INF, neither lib nor classes. It is common to put them in the same directory as the HTML page.
Respected Sir, I put my html file index.html and all the class files in the same directory.It gives me the following error. load: class WcClient.class not found. java.lang.ClassNotFoundException: WcClient.class at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 10 more But my class file is there in the same directory as the index.html.