applet qui ne se charge pas
Slt à tous,
J'ai un problème avec mon applet,
voici le code de mon jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<html>
<body style="margin:0;padding:0;">
<object
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="1000" height="700"
type="application/x-java-applet;version=1.5">
<param name="type" value="application/x-java-applet;version=1.5">
<param name="code" value="com.apvideo.applet.Representation">
<param name="codebase" value="./">
<param name="archive" value="lib/appWeb.jar">
<embed width="1000" height="700"
type="application/x-java-applet;version=1.5"
code="com.apvideo.applet.Representation"
codebase="." archive="lib/appWeb.jar">
</embed>
</object>
</body>
</html> |
Mon applet ne fait que compter le nombre de clic de la souris sur l'applet pour l'instant,
mais j'ai besoin des autres jars du répèrtoire WEB-INF/lib de mon appli pour la suite. Je précise que j'ai mis appWeb.jar dans le rép WEB-INF/lib
Voici l'erreur que j'ai sur la console java
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
charger : classe com.apvideo.applet.Representation introuvable.
java.lang.ClassNotFoundException: com.apvideo.applet.Representation
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(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)
Caused by: java.io.IOException: open HTTP connection failed:<a href="http://localhost:8080/appWeb/com/apvideo/applet/Representation.class" target="_blank">http://localhost:8080/appWeb/com/apv...entation.class</a>
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception : java.lang.ClassNotFoundException: com.apvideo.applet.Representation |
J'ai bon essayé avec com.apvideo.applet.Representation.class mais j'ai tjs la même erreur.
Quelqu'un peut me dire où se trouve le problème?
Merci de votre aide.