I am developing a plugin for JIRA. When I deploy this plugin, I copy the plugin jar to the lib folder of JIRA. In the jar, I have classes HelloWorldServlet and HelloWorldApplet present in the same package. When a request come to the servlet, I put the following html code in the PrintWriter object of the servlet.
On the browser, it shows 'Failed to load the applet' and in the console I get error message 'Unable to find the file'. Say the JIRA server is on one machine, X and I am accessing it from another machine, say Y.
Applets can not use classes that are inside the WEB-INF directory, because the server won't send those to the browser. You'll need to put the jar file containing the applet classes in a publicly accessible directory. Have a look at the CODEBASE and ARCHIVE attributes of the APPLET tag for how to specify where that directory is.
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad: