简体   繁体   English

applet中的多个代码库

[英]Multiple codebase in applet

OK so I'm a complete newby when it comes to Java applets so forgive my lack of knowledge. 好的,所以当谈到Java applet时,我是一个完整的新手,所以原谅我缺乏知识。 Is it possible to run multiple codebase locations in the same applet? 是否可以在同一个applet中运行多个代码库位置? Basically I have an applet up and running which sources it's class files from an external domain for which I am paying a subscription to but I also wanted to add in my own features by creating my own class files. 基本上我有一个applet启动并运行,它从我支付订阅的外部域中获取它的类文件,但我也希望通过创建我自己的类文件来添加我自己的功能。

The problem is one set of class files will be on a domain that I have no editable access to and my class document I have created will be stored on my own domain. 问题是一组类文件将在我没有可编辑访问权的域上,我创建的类文档将存储在我自己的域中。

Is this something that can be done? 这是可以做到的吗? or will an applet only access java files from one codebase location? 或者applet只能从一个代码库位置访问java文件?

Yes - you may specify multiple JAR-files in your applet-tag: 是的 - 您可以在applet-tag中指定多个JAR文件:

<applet codebase ="." code="myMainClass.class" archive="archive1.jar,archive2.jar,archive3.jar" height="640" width="480"/>

Please find the detailed Information here 请在此处找到详细信息

http://docs.oracle.com/javase/1.4.2/docs/guide/misc/applet.html http://docs.oracle.com/javase/1.4.2/docs/guide/misc/applet.html

ARCHIVE = archiveList The archives in archiveList are separated by ",". ARCHIVE = archiveList archiveList中 的归档以“,”分隔。

Hope this helps! 希望这可以帮助! :-) :-)

Greetings 问候

Christopher 克里斯托弗

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

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