简体   繁体   English

是否有用于Jython或JRuby的框架,或者您可以在JVM上运行py或ruby应用程序?

[英]Are there frameworks for Jython or JRuby, or is it you can run a py or ruby app on the JVM?

Are there specific frameworks for Jython or JRuby, or is it you can run a py or ruby app on the JVM? 是否有针对Jython或JRuby的特定框架,或者您可以在JVM上运行py或ruby应用程序?

ie you take your python django app, and you can run in on tomcat using jython? 即您带上了python django应用程序,并且可以使用jython在tomcat上运行?

Sorry little confused. 对不起,有点困惑。

JRuby 1.5.X is compatible with Ruby 1.8.7, and pretty much anything you write in Ruby will work in JRuby. JRuby 1.5.X与Ruby 1.8.7兼容,并且您在Ruby中编写的几乎所有内容都可以在JRuby中使用。 This includes applications written in frameworks such as Ruby on Rails, which can be converted to a war file and deployed to Tomcat. 这包括用诸如Ruby on Rails之类的框架编写的应用程序,这些应用程序可以转换为war文件并部署到Tomcat。 In fact the NetBeans IDE comes with Ruby on Rails support and by default you're using JRuby. 实际上, NetBeans IDE附带了Ruby on Rails支持,默认情况下,您正在使用JRuby。 This makes it easy if you're just getting started with the language and/or the framework. 如果您只是开始使用该语言和/或框架,那么这将很容易。

I think you're right. 我想你是正确的。 You can run django framework python in jython, which will run on the JVM, so I think you're in good shape. 您可以在jython中运行django框架python,它将在JVM上运行,因此我认为您的状态良好。 http://www.infoq.com/news/2009/09/state-of-python-on-the-jvm has a lot more details that may help you with specific ways to do this. http://www.infoq.com/news/2009/09/state-of-python-on-the-jvm提供了许多详细信息,这些信息可以帮助您使用特定的方法来完成此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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