欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
JRuby
来自开放百科 - 灰狐
JRuby是一个Ruby脚本语言的纯Java实现。JRuby可以嵌入到Java应用程序并可以在脚本中使用Java类.
目录 |
Install
wget http://dist.codehaus.org/jruby/jruby-bin-1.0.1.tar.gz tar zxvf jruby-bin-1.0.1.tar.gz vi .bastrc export JRUBY_HOME=/usr/local/jruby-1.0.1 export PATH=/usr/local/jruby-1.0.1/bin:$PATH $ jruby -v ruby 1.8.5 (2007-08-23 rev 4201) [i386-jruby1.0.1]
JIRB
$ jirb irb(main):001:0> irb(main):002:0> require 'java' => true irb(main):003:0> include_class 'java.util.regex.Pattern' => ["java.util.regex.Pattern"]
JRuby in GlassFish
http://wiki.glassfish.java.net/Wiki.jsp?page=JRuby
Links
- http://jruby.codehaus.org/
- JRuby 文档中心: http://docs.huihoo.com/jruby/
- JRuby and the Java Platform - http://java.sun.com/developer/technicalArticles/scripting/jruby/
- JRuby brings Rails applications to Glassfish - http://www.infoq.com/news/2006/11/rails-jruby-glassfish
分享您的观点