Security settings block signed applet running via Javascript


There is a signed applet. Runs in this way via HTML and works:

<!DOCTYPE html>

    <h1> Hi html works </h1>
    <applet code="Applet.class" archive="applet.jar" width=320 height=320>
    <param name="locale" value="de"/>


Now I'm trying to do the same via javascript using jnlp:

<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.0+" codebase="" href="">
        <!-- Application Resources -->
        <j2se version="1.7+"
        <jar href="applet.jar" main="true" />

         <param name="locale" value="de"/>
     <update check="background"/>

And the script itself inside HTML:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en-US">
    <title>OTC-Applet Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <script language="javascript">

    <noscript>A browser with JavaScript enabled is required for this page to operate properly.</noscript>
    <!-- script src=""></script -->
    <script src="otc.js"></script>
        <!-- applet id can be used to get a reference to the applet object -->
        var attributes = { id:'applet', code:'Applet', width:400, height:300} ;
        var parameters = {jnlp_href: 'applet.jnlp', locale: 'de'} ;
        deployJava.runApplet(attributes, parameters, '1.6');

    <h1>OTC Applet</h1>

In this case, it is blocked by the java. What's wrong here? What is the difference from the first option?
Java version 1.7.0_67.


To run, applets must be signed. There are test and free certificates, but for use on the site you should buy a certificate, for example, verysign (there are different ones, at different prices).

Here's an example of how to sign an applet:

And more links, can help in difficulty:

Scroll to Top