This discussion is archived
1 Reply Latest reply: Nov 27, 2010 8:04 AM by 801338 RSS

applet won't launch when using a search-engine cached or translated page

801338 Newbie
Currently Being Moderated
My applet won't launch successfully if the page is encased in a search-engine cache envelope, or translated. For example:

* [url]Japanese translation of my Interactive Color Wheel

Is there something I can do in either the Java code or the HTML page itself to allow the applet to work?

The following appears in the Java Console on failure:
load: class SIHwheel.class not found.
java.lang.ClassNotFoundException: SIHwheel.class
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager$ Source)
     at Source)
Caused by: open HTTP connection failed:
     at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader$ Source)
     at Method)
     ... 9 more
Exception: java.lang.ClassNotFoundException: SIHwheel.class
  • 1. Re: applet won't launch when using a search-engine cached or translated page
    801338 Newbie
    Currently Being Moderated
    A potential solution occurred to me right after I posted, and I think it may be working. (Can't tell for sure until search engine cache's updated with this change.) Basically I expanded the .jar archive name:
    <script type='text/javascript'>
      'Get Java for free at '
    Before the change, the archive line simply referenced 'SIHwheel.jar'.

    The one downside to this, assuming it works, is that I'll need two versions of the page. A local one on my hard drive for when I want to test before deploying, and the networked version with the full URL. That's a worthwhile trade-off, though.

    Edited by: RichF on Nov 27, 2010 10:39 AM
    PS: the link in first post still fails, but it seems to be accessing yesterday's version of the page (date on bottom). Also I note that the HTML for that Google-translated page and Bing's cache page contain:
    <base href= />
    That works well for accessing all the locally-referenced images on the page, but for some reason fails to find the .jar file without a complete URL. The [url]applet-fu.js script does not appearing to be adorning the archive line in any way.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points