How to embed a Java Applet from another website (c

2019-09-14 21:43发布

In addition to what my title says, I am running into problems because their class file is linked as follows:

"var attributes = 
  {code:'xx/xxxx/xx/xx/xxx/xxx/xxxxx.class' 
                       width:645,height:443,archive:'xxxxx.jar'}"

First, I naively copied the HTML code and it did show a Java Applet Object, but couldn't load it because it obviously didn't find the class. I tried many different addresses to see if I can download the class, but with no success. Does this mean the class can't be downloaded? I'm in the process of asking for their permission and see if we can get it directly from them.

I also thought of another way. Is it possible to embed their whole page as an iframe AND "crop" it so the iframe only displays the area where the Java Applet is located? If this is possible, it would be the best and easiest way.

标签: java applet
1条回答
一夜七次
2楼-- · 2019-09-14 22:28

You certainly can download the the .jar file - they have to be accessible so that browsers can load them. I'd guess you are trying to get the .class file, but it is within a .jar, so get the .jar instead.

查看更多
登录 后发表回答