JNLP API可以在运行时加载资源吗?

发布于 2024-11-11 13:13:37 字数 374 浏览 8 评论 0原文

有没有办法在运行时将 JAR 资源加载到应用程序中? JNLP API ( http://download.oracle.com/javase /6/docs/jre/api/javaws/jnlp/ )很棒,因为我有自定义的资源管理,但我可以删除资源,如果我使用 DownloadService.loadResource(...) ,则资源似乎是只下载了,但该应用程序必须重新启动才能从新资源中受益。不幸的是,启动一个新应用程序并关闭当前正在运行的应用程序对我来说不是一种选择,那么有没有一种方法可以在运行时实际加载这些资源?

谢谢!

is there a way to load JAR resources into an app during runtime? JNLP API ( http://download.oracle.com/javase/6/docs/jre/api/javaws/jnlp/ ) is great because i have custom management of resources, but i can remove resources and if i use DownloadService.loadResource(...) it seems the resource is only downloaded, but the app will have to be started again to benefit from the new resources. Unfortunately, starting a new app and closing the currently running one is not an option for me, so is there a way to actually load these resources during runtime?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文