I’m assuming I’m missing a library or something. The error output is:
file:/usr/local/jruby/lib/jruby.jar!/builtin/javasupport/proxy/
concrete.rb:6:in new': expected [java.awt.event.ActionListener]; got: [org.jruby.RubyProc]; error: argument type mismatch (TypeError) from file:/usr/local/jruby/lib/jruby.jar!/builtin/javasupport/ proxy/concrete.rb:6:in
new’
from window.rb:28:in initialize' from file:/usr/local/jruby/lib/jruby.jar!/builtin/javasupport/ proxy/concrete.rb:6:in
new’
from file:/usr/local/jruby/lib/jruby.jar!/builtin/javasupport/
proxy/concrete.rb:6:in `new’
from window.rb:36
Any ideas as to what is happening hear. As I say, it works fine when
run directly from netbeans, it only gives problems when I try to run
it from the command line using ‘jruby’.
Thanks,
Ken
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Can you double check the version of jruby that you have on command line
to
confirm that it is the latest version?
Later versions of jruby has an automatical mapping feature to map ruby
blocks
to simple java interface (such as most listeners). It looks like your
command
line jruby may not be recent enough to have that feature.
Peter
MBP:Rex Ken$ jruby -v
ruby 1.8.5 (2007-06-24 rev 3841) [i386-jruby1.0]
Is this recent enough?
Thanks,
Ken
On Dec 1, 2008, at 11:53 AM, Peter K Chan wrote:
Peter
from window.rb:36
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Your version of JRuby is over a year old and is from the 1.0 series. I
highly
doubt that it has that feature.
Try something more recent in the 1.1 series. If I recall correctly, the
automatic mapping feature didn’t come until 1.1.3 or 1.1.4. I suggest
that you
just grap 1.1.5, which is the current release.
Peter
Thanks!
Ken
On Dec 1, 2008, at 12:20 PM, Peter K Chan wrote:
Peter
ruby 1.8.5 (2007-06-24 rev 3841) [i386-jruby1.0]
line to
-----Original Message-----
concrete.rb:6:in `new’: expected [java.awt.event.ActionListener];
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email