0 Replies Latest reply: Oct 1, 2013 1:53 AM by 924122 RSS

    Failed to load applet in HTML page




      I cannot load my applet under IE9+, Chrome (v28). The applet is signed because it access to file resources.


      Applet deployment, Javascript code:

      <script type="text/javascript" src="http://www.java.com/js/deployJava.js"></script>
      if (deployJava.isPlugin2()) {
        // Launch as JNLP style applet if plugin2 is available
        var attributes = {'/files/ldep.jnlp'} ;
      } else {
        // old plugin and MacOS case  (currently isPlugin2() always false for MacOS)
        var attributes = { id:'ifsAuth', code:'org.ldep.AdminLogin', archive:'ldep.jar', width:1, height:1} ;
      // minimum Java needed:  1.5 or above
      var minimumVersion = '1.5.0' ;
      deployJava.runApplet(attributes, parameters, minimumVersion);



      <?xml version="1.0" encoding="UTF-8"?>
      <jnlp codebase="" href="">
        <title>LDEP Applet</title>
        <resources os="Windows">
        <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se" />
        <jar href="/files/ldep.jar" main="true" />
        <nativelib href="/files/ldep-win32.jar" />
        <applet-desc name="ldep" main-class="org.ldep.AdminLogin" width="1" height="1" />


      Is there something wrong in this code?