簡體   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