使用 java eclipse 执行 Jython 脚本

发布于 2024-08-20 12:50:58 字数 232 浏览 1 评论 0原文

我正在尝试使用 java eclipse 3.4 执行完整的 Jython 项目..我已经在 eclipse 中配置了 Jython 环境..我浏览了某些描述有关构建工厂的教程..但我想该方法可用于执行以下应用程序特定于特定的 Jython 模块。我真正需要的是::

通过使用 Jython 项目中创建的 .class 文件,将整个 Jython 项目作为 java 应用程序运行。

不确定这是否可行。请提出建议。 。

Am trying to execute a complete Jython project using java eclipse 3.4.. I have configured Jython environment in my eclipse..I went through certain tutorials which described about Building a factory.. But i guess that method can be used to execute applications that are specific to a particular Jython module.. What I exactly need is::

To run the entire Jython project as a java application, by using the .class file created in the Jython project..

Not sure if this is feasible.. Suggestions please..

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

弃爱 2024-08-27 12:50:58

一个带有嵌入式 PythonInterpreter 的 Java 类能够启动整个 Jython 应用程序。可能需要设置适当的 python.home 和库路径,请查看 PyServletInitializer 和 PyFilter 以获取如何完成此操作的示例。

另一种选择是使用 PyDev 并仅运行 Jython 脚本来启动应用程序,从而完全不需要 Java 应用程序。

One Java class with an embedded PythonInterpreter is capable of kicking off an entire Jython application. May need to play around with setting the appropriate python.home and library paths, look in the PyServletInitializer and PyFilter for examples of how this is done.

Another option is use PyDev and just run a Jython script to start the application, bypassing the need for a Java application all together.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文