Trying to put an applet to work
Hi: From my java class, I am trying to, depending on the argument value, trying to loan an applet. My code is this :
if (argument.equals("return.html")){
//return an html doc to be displayed by the users Browser
xmlTest = "<apiResponse><htmlPage><!CDATA[><html><body><applet code=\"EntidadesAWT.class\" source=\"http://www.sat.gob.mx/ABM/app_version_4/\"></applet>This is an html page.</body></html>]]></htmlPage></apiResponse;
}
When I execute I get this error
java.lang.ClassNotFoundException: EntidadesAWT.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
The Entidades.class is in Entidades.jar in the same directory as my class. Kindly advice.
Regards>

