在 Eclipse 中为 Web 应用程序编译 Jython

发布于 2024-08-22 07:57:42 字数 367 浏览 0 评论 0原文

我在 Eclipse 中设置了 PyDev 来进行 Jython Web 开发。对于我正在处理的特定项目,我更喜欢使用 Jython 编译器,而不是使用 Jython 解释器来处理我的 servlet。

在 Eclipse 中,我使用 Tomcat 来测试我的 Web 应用程序。我正在寻找的流程与标准 Java Web 开发非常相似。我想做类似的事情;

  • 将我的 Jython 脚本放入源文件夹中。
  • 当我重新发布到 Tomcat 服务器时,让 Jython 编译器将脚本编译为 Java 类。

与我使用 Java 几乎相同,但使用 Jython 脚本。我在 Eclipse 中设置此过程时遇到问题。解决这个问题的最佳方法是什么?

I have PyDev set up in Eclipse to do Jython web development. Instead of using the Jython interpreter to handle my servlets I prefer to use the Jython compiler instead for a particular project I'm working on.

Within Eclipse I use Tomcat to test my web apps. The sort of process that I'm looking for is would be very similar to standard Java web development. I'd like to do something like;

  • Put my Jython scripts in the source folder.
  • Have the Jython compiler compile the scripts into Java classes when I republish to the Tomcat server.

Pretty much the same as if I would use Java but with Jython scripts instead. I'm having trouble setting this process up in Eclipse. What would be the best way to go about this?

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

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

发布评论

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

评论(1

欢烬 2024-08-29 07:57:42

也许你看看 snakefight

Maybe you have a look at snakefight

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