Hello,

after several days did not get it to work the applet in the browser(Firefox)
through Restlet.

I thought it might be for the versions, but Tanton in the JVM as Netbeans
IDE with version 1.6

Please I need help, and not to prove

Greetings.

Below specifies the source of the Restlet to use and gives me the error JVM.


Call the applet with Restlet
----------------------------

 public class WebHfWiPrefuseServerRecurso extends Restlet {

  @Override
  public void handle(Request request, Response response) {
   try {
    StringBuilder GraphView_HF = new StringBuilder();
    GraphView_HF.append("<html>");
    GraphView_HF.append("<head></head>");
    GraphView_HF.append("<body bgcolor=white>");
    GraphView_HF.append("&lt;applet  &quot;
            + &quot;code=\&quot;GraphView_HF.class\&quot; 
archive=\&quot;prefuse.jar\&quot; &quot;
            + &quot;width=800 height=400 &gt;"
            + "</applet>");
    GraphView_HF.append("</body>");
    GraphView_HF.append("</html>");


    response.setEntity(new StringRepresentation(
            GraphView_HF.toString()  , MediaType.TEXT_HTML));
   } catch (UnsupportedEncodingException ex) {
        Exceptions.printStackTrace(ex);
   }
 }
}



ERROR
---------------

        Java Plug-in 1.6.0_24
        Usando versión JRE 1.6.0_24-b07-334-10M3326 Java HotSpot(TM) Client VM
        Directorio de inicio del usuario = /Users/pakobe
        ----------------------------------------------------
        c:   borrar ventana de consola
        f:   finalizar objetos en la cola de finalización
        g:   liberación de recursos
        h:   mostrar este mensaje de ayuda
        l:   volcar lista del cargador de clases
        m:   imprimir sintaxis de memoria
        o:   activar registro
        p:   recargar configuración de proxy
        q:   ocultar consola
        r:   recargar configuración de norma
        s:   volcar propiedades del sistema y de despliegue
        t:   volcar lista de subprocesos
        v:   volcar pila de subprocesos
        x:   borrar memoria caché del cargador de clases
        0-5: establecer nivel de rastreo en <n>
        ----------------------------------------------------
        java.lang.ClassFormatError: Incompatible magic value 3265339475 in class
file GraphView_HF
                at java.lang.ClassLoader.defineClass1(Native Method)
                at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
                at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
                at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
                at 
sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:209)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
                at 
sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
                at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
                at 
sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:654)
                at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
                at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2383)
                at jep.AppletFramePanel.createApplet(Unknown Source)
                at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
                at sun.applet.AppletPanel.run(AppletPanel.java:368)
                at jep.AppletFramePanel.run(Unknown Source)
                at java.lang.Thread.run(Thread.java:680)
        Ignored exception: java.lang.ClassFormatError: Incompatible magic value
3265339475 in class file GraphView_HF


EXIT SERVER
---------------

2011-04-21        10:34:34        127.0.0.1        -        -        8115       
GET        /prefuse/es.wikipedia.org/UCA/GraphView_HF.class        -       
200        103        0        1        http://localhost:8115       
Mozilla/4.0 (Mac OS X 10.6.7) Java/1.6.0_24        -



Any Idea?


--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Restlet-not-show-applet-tp6293625p6293625.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2722081

Reply via email to