简体   繁体   English

从网页下载java applet

[英]Download java applet from webpage

Is there any way to download an applet embedded in a webpage of a site www.abc.com 1 , to one's system? 有没有办法下载嵌入网站www.abc.com 1的网页的applet到一个系统?

Or is it possible to extract its code for offline use? 或者是否可以提取其代码以供离线使用?

  1. EG http://www.falstad.com/dotproduct/ EG http://www.falstad.com/dotproduct/

For the link provided, I see the link "Zip archive of this applet.". 对于提供的链接,我看到链接“此applet的Zip存档。”。 It contains the applet jar, html page and the java source file. 它包含applet jar,html页面和java源文件。

You can try to inspect the page source to see the archive file it is using. 您可以尝试检查页面源以查看它正在使用的存档文件。 In this case, it appears as if it is using http://www.falstad.com/dotproduct/dotproduct.jar . 在这种情况下,它似乎正在使用http://www.falstad.com/dotproduct/dotproduct.jar You can use this in a project, but the source will not be attached. 您可以在项目中使用它,但不会附加源。

The applet at http://www.falstad.com/dotproduct/ can certainly be used off-line. http://www.falstad.com/dotproduct/上的小程序当然可以脱机使用。 I tested it just to make sure. 我测试它只是为了确保。

You would need to download the dotproduct.jar (referenced in the page - are you familiar with "View Source"?) to the local file-system then create an HTML (or use a copy of Paul Falstad's own HTML) to launch it. 您需要将dotproduct.jar (在页面中引用 - 您熟悉“View Source”吗?)下载到本地文件系统,然后创建一个HTML(或使用Paul Falstad自己的HTML副本)来启动它。

You might try "Save page as" for the 2 nd part, but I am not confident that that would also download the Jar of the applet itself. 你可能会尝试“保存页面为” 第二部分,但我不相信那也会下载applet本身的Jar。

Of course, it would be courteous to let Paul know what you are doing. 当然,让保罗知道你在做什么是很有礼貌的。 You might find he will be prepared to send you a Zip of the HTML/applet. 可能会发现他将准备向您发送HTML / applet的Zip。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM