繁体   English   中英

HTML中的Java小程序。 JAR执行

[英]Java applet in HTML. JAR execution

可以说我们在HTML页面中放置了这种Java小程序。

<applet code="test.class" archive="test_archive.jar"></applet>

即使无法访问类文件“ test.class”(HTTP 404中的结果),WEB浏览器是否也可能执行“ test_archive.jar”文件? 另外,是否可以在HTML页面中编码Java applet,而只需要jar文件即可在WEB浏览器中执行它。

//Here is applet tag code you coan put in web page which one load YourApplet
// Remember when you try to access your applet out side your system then YourApplet should be digitally signed
<APPLET code="YourApplet.class" archive="YourApplet.jar"  codebase="http://www.example.com/yourbase_directory_where_YourApplet.jar_file_exits/" width=250 height=150>
when applet load from this location it is use the codebase directory

暂无
暂无

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

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