What’s the difference between Ruby and JRuby? [closed]

Ruby runs within a native C based interpreter. JRuby runs inside the Java Virtual Machine. There are many gems and plugins that might not work inside JRuby, specifically one’s with native C extensions, unless they’ve been rewritten to run in Java. Ultimately the difference comes in when you want to actually deploy your application (assuming … Read more

SASS implementation for Java? [closed]

With ANT: Download JRuby complete jar file (JRuby Complete jar download page) Download the latest HAML/SASS code (HAML/SASS tarball), and extract it. Put it in “/libs/sass-[VERSION]” Add the following to an ant build file. Replace [VERSION] in the script to the corresponding versions of JRuby and SASS Run the ant script, and the sass or … Read more

How to make JRuby 1.6 default to Ruby 1.9?

Use the JRUBY_OPTS environment variable. JRUBY_OPTS holds a list of arguments that are added to any arguments specified on the command line. For example (on Linux): $ jruby -v jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-10 769f847) (Java HotSp… $ export JRUBY_OPTS=–1.9 $ jruby -v jruby 1.6.0.RC1 (ruby 1.9.2 trunk 136) (2011-01-10 769f847) (Java HotSpot(TM… … Read more

JRuby on Rails vs. Ruby on Rails, what’s difference?

JRuby is the Ruby implementation that runs on a JVM whereas Matz’s Ruby is a C implementation. Key features to note are: JRuby runs on Java VM’s and it’s either compiled or interpreted down to Java byte code. JRuby can integrate with Java code. If you have Java class libraries (.jar’s), you can reference and … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)