Starting issues with java.lang

  2 posts   Feedicon  
Replies: 1 - Last Post: March 15, 2010 13:21
by: lea_wang
showing 1 - 2 of 2
 
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
 
Posted: March 15, 2010 13:21 by lea_wang
HI KungFuZius,

This forum is for general help on Project Kenai. For any JRuby specific questions, please send an email to user@jruby.codehaus.org. Someone will answer your questions promptly.

Hope this helps,
-Lea Wang
The Project Kenai Team
Replies: 1 - Last Post: March 15, 2010 13:21
by: lea_wang
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close