KungFuZius
|
Posted: March 13, 2010 21:15 by KungFuZius
|
|
Hello, I just started to learn JRuby. So I installed "jruby_windowsjre_1_4_0.exe" on my windows xp professional machine. I wanted to start with these examples: http://java.sun.com/developer/technicalArticles/scripting/jruby/#gs and I found the following error implementing the form example. I reduced the code such that the following two lines give the following error message: The Code: require 'java' java.lang.boolean $_clickMeMode = true The Error:
*****/jruby-1.4.0/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:5
0:in `method_missing': wrong number of arguments (1 for 0) (ArgumentError)
from step1.rb:2
JRuby and Java version: *****>jruby -v jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) C lient VM 1.6.0_16) [x86-java] So, why does this simple code not work? Thanks for any help KungFuZius |
Starting issues with java.lang
Replies: 1 - Last Post: March 15, 2010 13:21
by: lea_wang
by: lea_wang
showing 1 - 2 of 2
Replies: 1 - Last Post: March 15, 2010 13:21
by: lea_wang
by: lea_wang







