Embedding jar Applet into an HTML page
              in 
             Integration and Hardware 
              •  
              1 year ago    
            
 
           
             Hi all,
            
             
            
            
             
            
            
             
            
            
             
            
             
            
            
             
            
            
             
            
            
             
            
            
             
            
            
 
            
           
             i've done some search but I have not found anything, so, i'm asking for your help.
            
            
             I have created an applet using Eclipse. Once finished it i've exported it with the 
             File->Export->Java-> JAR File tool(not 
             Runnable Jar File).
            
            
             I need to embed this jar inside an HTML page and i have been told to use this code here:
            
            - <object classid="java:bMapped.class" width="xxx" height="yyy" archive="arc.jar">
 - <param name="param" value="val" />
 - </object>
 
              but it does not seem to work.
             
            
             I think that the problem could be caused by the structure of my JAR file.
            
            
             I think the code posted above supposes that the file class is just inside the archive arc.jar, but in my case it is not.
            
            
             In my JAR .class files are inside folders called core and geo. So, I have:
            
            
             arc.jar
            
            
             |->core->bMapped.class
            
            
             |->geo->other .class files
            
            
             How should I edit the <object> tag to get my applet work?
            
            
             Thank you all,
            
            
             MG
            
 
            
              
              1  
            
 
            