I have a problem when I try to run an applet that loads an image and display it. The applet belongs to a package.
The real problem is when I try to run the applet in the APPLETVIEWER, and THERE ARE NO problems when I run it in the browser., at this time I'm realizing that this is a java restriction?
The code of course is pretty straightforward, but I include the source .java and .html files.
codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Ve rsion=1,2,2,0 <http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab>"> <PARAM NAME="code" VALUE="Pruebas.MisApplets.MiApplet.class"> <param name = "ARCHIVE" value = "MiPaquete.jar"> <param name = "codebase" value="C:\Documents and Settings\Chicas\My Documents\Julio\Pruebas\MisApplets\">
</object>
of course, I have created a .jar file called MiPaquete.jar that includes just the .class file
As I said it works fine in the browser, but what happens with the appletviewer, another point If I don't use packages then it works fine in both browser and appletviewer,
and it works fine if the applet doesn't belongs to a package.
The problems comes when I put the applet in a package (the applet is the same one I posted), as a matter of fact the problem happens when I run the applet in the appletviewer.
It works fine, when I run it in the browser.
Hope it helps to make a better description of my problem.