简体   繁体   中英

Java Applet and ServiceLoader

Java Applet doesn't load service classes from someJar.jar!/META-INF/services/ by default causing NoClassDefFoundError exception.

How to make it work?

Perhaps by using codebase_lookup property of applet?

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

The above also implies that your services are either bundled in your applet jar, or you have also specified "codebase"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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