我试图通过PHP生成Java JNLP文件 . 当它被调用以启动java阻止消息弹出时 . 我已经将http://localhost添加为可信站点,并且jar文件是自签名的;不要运行该应用程序 . 任何帮助将不胜感激 .

jnlp launh html文件

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>Start Print</title>
    </head>
    <body>
        <h3>Test page for launching the application via JNLP</h3>
        <form action="launch.php" method="get">
            <label>Printer Name: </label>
            <input name="printer" value="CutePDF Printer"/>
            

<label>File URL: </label> <input name="url" value="http://dev.webstie.co.uk/print_test/print.pdf"/>

<button type="submit" value="Print" name="Print">Print</button> </form> </body> </html>

JNLP(launch.php)文件

<?php header('Content-type: application/x-java-jnlp-file'); ?>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="http://localhost/testjnlp/dist" spec="1.0+">
    <information>
        <title>TestJNLP</title>
        <vendor>Hasan</vendor>
        <homepage href=""/>
        <description>TestJNLP</description>
        <description kind="short">TestJNLP</description>
    </information>
    <update check="always"/>
    <security>
<all-permissions/>
</security>
    <resources>
        <j2se version="1.8+"/>
        <jar href="TestJNLP.jar" main="true"/>
    </resources>
    <application-desc main-class="PrinterList">
        <argument><?php echo $_GET['printer']; ?></argument>
        <argument><?php echo $_GET['url']; ?></argument>
    </application-desc>
</jnlp>

我得到的消息是

enter image description here