bonjour,
j'ai crée une Applet, qui accede au ressources locales, et j'ai signé le jar avec maven,
mon applet fait appel à plusieurs librairie (log4j, javacomm,jaxb ...
quand je lance mon applet sous eclipse ça marche à merveille.
seulement si je l'integre dans un navigateur c'est la cata !!!
voici le code html qui appel mon applet :
mon jar se trouve sous /out/deploy/signed/applet-impression-V09_30_SNAPSHOT-signed.jar
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 <applet code="fr.impression.thprinter.applet.AppletComm"> <param name="ARCHIVE" value="out/deploy/signed/applet-impression-V09_30_SNAPSHOT-signed.jar, file://C:/Documents and Settings/$user/.m2/repository/javax/comm/comm/2.0.3/comm-2.0.3.jar, file://C:/Documents and Settings/$user/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar, file://C:/Documents and Settings/$user/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.9/jaxb-impl-2.1.9.jar, file://C:/Documents and Settings/$user/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.9/jaxb-xjc-2.1.9.jar, file://C:/Documents and Settings/$user/.m2/repository/jre/jre_plugin/1.6.0_07/jre_plugin-1.6.0_07.jar, file://C:/Documents and Settings/$user/.m2/repository/log4j/log4j/1.2.9/log4j-1.2.9.jar,file://C:/Documents and Settings/$user/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar" /> </applet> // $user==le nom de l'utilisateur
l'erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 java.lang.NullPointerException at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source) at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception : java.lang.NullPointerException
Partager