title: Same DLL accessed by two applets in 2 web applications
body: <p>I need a suggestion to solve the following problem.</p>
  
  <p>I have two web applications (let's say WEBAPP-A and WEBAPP-B) running under the same application server. Each login page in each application page activates a specific applet
  (let's call them JAPP-A and JAPP-B, respectively). These two applets need to use the same DLL.</p>
  
  <p>Each applet (JAPP-A or JAPP-B) works OK when accessing the application separately (in our case the browser used is Internet Explorer 8.0 and the JRE version of the client is 1.7.0_45). However, when redirecting from WEBAPP-A to WEBAPP-B, the applet JAPP-B crashes.</p>
  
  <p>I get the error:</p>
  
  <pre><code>UnsatisfiedLinkError: 'DLL already loaded in another classloader'
  </code></pre>
  
  <p>So I have tried to use the same classloader for JAPP-A and JAPP-B by setting the same CODEBASE value inside the applet tag and deploying the JAR containing the JAPP-B code under the CODEBASE path, but we got the same error message.</p>
  
  <p>Can anyone suggest an alternative approach in order to get the applet JAPP-B working correctly?</p>