Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/363.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
InvocationTargetException不是';t显示在Java控制台[Applet]上_Java_Applet_Jna - Fatal编程技术网

InvocationTargetException不是';t显示在Java控制台[Applet]上

InvocationTargetException不是';t显示在Java控制台[Applet]上,java,applet,jna,Java,Applet,Jna,我创建了一个小程序来打印。 当我运行它时,我收到异常java.lang.reflect.InvocationTargetException。 当我查看Java控制台时,不会出现异常 Java Plug-in 10.4.1.255 Using JRE version 1.7.0_04-b22 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\Administrator ---------------

我创建了一个小程序来打印。 当我运行它时,我收到异常java.lang.reflect.InvocationTargetException。 当我查看Java控制台时,不会出现异常

Java Plug-in 10.4.1.255
Using JRE version 1.7.0_04-b22 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
My index.html:

<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div>
            <applet width=300 height=300 code="Impressora" ARCHIVE="ImpressoraAssinada.jar"></applet>
        </div>
    </body>
</html>
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <div>
            <applet width=300 height=300 code="Impressora" ARCHIVE="ImpressoraAssinada.jar"></applet>
        </div>
    </body>
</html>
cd C:\path\to\dir\Impressora
keytool -genkey -dname "cn=Impressora, ou=XX, o=XXX, l=city, s=RS c=BR" -alias ImpressoraKey -keystore C:\ImpressoraKey -storepass passwd -validity 7300
jarsigner -keystore C:\ImpressoraKey -storepass passwd -signedjar ImpressoraAssinada.jar Impressora.jar ImpressoraKey
keytool -export -keystore C:\ImpressoraKey -storepass passwd -alias ImpressoraKey -file Impressora.x509