jruby

How to enable C extension support in jRuby?

这一生的挚爱 提交于 2019-11-26 23:01:59
问题 I want to install a gem but I get the following error: Building native extensions. This could take a while... ERROR: Error installing twitter-login: ERROR: Failed to build gem native extension. C:/nwcloud/jruby-1.7.2/bin/jruby.exe extconf.rb NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable. I also read this question with the same problem, but I don't even know how to enable the support with the three

Create deployable JRuby JAR file?

非 Y 不嫁゛ 提交于 2019-11-26 19:36:30
问题 I need to compile my JRuby application into a standalone JAR file. How can I do this? 回答1: Warbler 1.3.0 or newer can also be used to make an executable JAR file. Quick instructions. Make sure you're using JRuby`s gem, etc. here: $ gem install warbler $ mkdir bin $ cat <<EOF > bin/myapp #!/usr/bin/env jruby puts "Hello World" EOF $ chmod a+x bin/myapp $ warble jar You should now have a myapp.jar file in the current directory. According to the README you just add any libraries you need in the

How to make JRuby 1.6 default to Ruby 1.9?

僤鯓⒐⒋嵵緔 提交于 2019-11-26 17:55:28
问题 what is the best way to make JRuby to run in 1.9 mode by default? i.e, I want to run rake test instead of jruby --1.9 -S rake test Thank you 回答1: 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

SASS implementation for Java? [closed]

☆樱花仙子☆ 提交于 2019-11-26 15:02:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm looking for SASS implementation in Java (could be used with JSP/JSF). For Python I've found CleverCSS, but there is nothing for Java. Anyone heard something about this sort of tool for generating CSS? 回答1: With ANT: Download JRuby complete jar file (JRuby Complete jar download page) Download the latest HAML