This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have revised a lotrs of times and the path doesn´t give me more that the next error:
cargar: clase webcam.class no encontrada.
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
Try removing ".class" from the code attribute - the attribute takes a class name, not a file name.
webcam.class is in the top level of the webcam.jar file? which itself is in a parallel directory called "bean" to the directory where the HTML file resides?
Joined: Feb 16, 2011
The webcam.class is in the bean package which is parallel to the WebPages folder where the .xhtml is in.
I am using Glassfish and Netbeans. Also the .jar is in the path of the project and in the path of WebPages folder.
I have tried all posibilities I have found, and it never finds it.
Joined: Mar 22, 2005
If the class is in a package then the code attribute needs to reflect that - it takes the fully qualified class name.
I'm not quite sure what the directory layout of all your files is; maybe you can make that a bit clearer. I advise not to use an IDE to run applets; they cause the applet to work differently than it would in reality.