繁体   English   中英

Java Applet和ServiceLoader

[英]Java Applet and ServiceLoader

默认情况下,Java Applet不会从someJar.jar!/ META-INF / services /加载服务类,从而导致NoClassDefFoundError异常。

如何使其运作?

也许通过使用applet的codebase_lookup属性?

http://docs.oracle.com/javase/6/docs/technotes/guides/plugin/developer_guide/special_attributes.html

上面的内容还暗示您的服务或者捆绑在applet jar中,或者您还指定了“代码库”

暂无
暂无

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

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