ruby on rails - unable to install java gem for jruby -


i need install java gem jruby package. below error gives me.

c:\users\abcd>jruby -v

jruby 1.7.19 (1.9.3p551) 2015-01-29 20786bd on java hotspot(tm) 64-bit server vm 1.8.0_31-b13 +jit [windows 7-amd64]

c:\users\abcd>jgem install java

io/console not supported; tty not manipulated error: error installing java: java requires ruby version >= 2.1.0.

from irb console when require 'java' gives me 'false' always

if @ https://github.com/vanruby/java/blob/master/java.gemspec you'll see ruby version must >= 2.1.0

this same error got.

jruby 1.7.19 has 2 modes: 1.8 , 1.9 modes.

if want ruby modes >= 2.x, need move jruby-9k, not yet released pre-2 version available tests:

http://jruby.org/2015/04/28/jruby-9-0-0-0-pre2.html

jruby 9k pre2 has ruby mode 2.2.2 , installation work nicely:

jruby -v

jruby 9.0.0.0.pre2 (2.2.2) 2015-04-28 2755ae0 java hotspot(tm) 64-bit server vm 25.45-b02 on 1.8.0_45-b14 +jit [windows 7-amd64]

jgem ins -l java-0.0.2.gem

successfully installed java-0.0.2 1 gem installed

please note in case downloaded gem locally, i've internal network restrictions.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -