Some users report a ClassNotFoundException
error with our Java applet, but others are able to use the applet without issue.
We have observed that the problem seems correlated to the system's operating system.
The users who can successfully use the applet have newer computers whereas the ones who cannot are using Windows XP Home SP3. We verified the ability to directly download the applet by typing the applet URL into the browser. A firewall doesn't appear to be the issue.
We asked everyone to use Chrome to remove the browser as a variable.
Do we need to sign the applet in a different way or reference the applet differently within the HTML?
We know the applet
tag is deprecated, but that doesn't explain why it's generating this error for some users and not others.
Another relevant detail: if you use the IP address directly, not the domain name, the applet loads fine.
Reproduce:
1) Visit http://www.cengraving.com/s/item?itemId=CH003
2) Tap Customize.
3) On XP machines, the page generates the ClassNotFoundException
error saying that com.designapplet.ui.DesignApplet
is not found. (We have also referenced com.designapplet.ui.DesignApplet.class
but that also fails.)
4) If you try again the IP addr, the applet loads fine on those same XP machines: 67.212.167.170/s/item?itemId=CH003. We can load the applet directly from the browser with www.cengraving.com/SecureApplet.jar, so firewall rules don't appear to be an issue.
HTML:
<applet name="app" archive="/SecureApplet.jar" code="com.designapplet.ui.DesignApplet" width="770" height="800">
<param name="itemId" value="CH003">
<param name="layoutId" value="CH0031395363931437.lay">
<param name="process" value="Engraving">
<param name="qty" value="1">
<param name="id" value="171">
<param name="sessionId" value="3BF3610C74B4BB5CC5193E479CD1D930">
(HTML)
</applet>