<HTML>
<BODY>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    width="400" height="400" align="baseline"
    codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
win32.cab#Version=1,3,0,0">
    <PARAM NAME="code" VALUE="Show2Image.class">
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="MAYSCRIPT" VALUE="true">
</OBJECT></BODY>
</HTML> 

解决方案 »

  1.   

    Detect if Swing is installed
    public class SwingSniffer extends java.applet.Applet {
      public void init() {  
        try {
          com.sun.java.swing.JButton dummy = 
              new com.sun.java.swing.JButton("foo");
          System.out.println("Swing is here"); 
          // getAppletContext().showDocument
          // (new URL(getCodeBase()+"AppletPageWithNoArchiveTag.html"));
          } 
        catch(Exception e) {
          System.out.println("Swing is not here, you must download or install it");    
          // getAppletContext().showDocument
          // (new URL(getCodeBase()+"AppletPageWithArchiveTag.html"));
          }
        } 
    }
     <HTML><HEAD></HEAD><BODY>
    <APPLET CODE="SwingSniffer.class"  
          HEIGHT=1 WIDTH=1>
     <A HREF="/nojava.html">
       Oups! You don't have JAVA enabled, click here.</A>        
    </APPLET>
    <A HRES="lan/jre.exe">install</A>
    </BODY></HTML>
      

  2.   

    同hexiaofeng(java爱好者) 。,
    只要改codebase,并指到在内部service上。