使用 Web Start 对 Jython 进行查询
我正在考虑创建一个 jython 应用程序并将其部署为 java web start。
我的查询与以下问题有关:对于 Web Start 部署,我们还必须将 jython 标准 jar 包与我们的应用程序 jar 一起分发。
从所有网络资源中,这就是我听到的。令人担忧的是,这将使应用程序的下载时间显着增加,因为 jython jar 文件接近 9 Mb。
如果你们中有人通过 web start 部署了 jython 应用程序,您能否澄清我们是否需要将 jython jar 包与我们的应用程序文件捆绑在一起,还是仅将应用程序文件捆绑在独立的 jar 文件中(这解决了我的问题)
问候 夏姆
I am looking at creating a jython application and deploying it as a java web start.
My query is related to a concern that for web start deployment, we have to distribute the jython standard jar package also along with our application jar.
From all the web resources , this is what I hear. And the concern is that this will make the download time of the application significantly large as jython jar file is nearly 9 Mb.
If anyone of you has deployed a jython app through web start, can you clarify if we need to bundle the jython jar package along with our application files or only the application files in a standalone jar file ( this solves my problem)
Regards
Shyam
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,正如我所想的......我必须将 jython jar 与应用程序 jar 一起打包才能使其工作。
原因是,应用程序 jar 由 python 代码组成,客户端 JVM 无法理解除非使用 jython jar 包。
据我所知,jython 目前不支持将 python 代码转换为 java 类。除非这是可能的,否则必须包含 jython jar 包。
OK , as I figured out...I have to package the jython jar also along with the application jar to make it work.
The reason is that, the application jar consists of python code which the client JVM has no way to understand unless it uses the jython jar package.
As I hear jython has no support currently to convert python code to java classes. Unless this is possible , the jython jar package has to be included.