Should wildcards work in JRuby imports?
e.g import java.awt.*
They are giving method missing, cannot load java class error (NameError)
Thanks
Paul F.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Should wildcards work in JRuby imports?
e.g import java.awt.*
They are giving method missing, cannot load java class error (NameError)
Thanks
Paul F.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Hi Paul,
There is “import_package” method that you could use like this:
module JavaAwt
include_package “java.awt”
end
And then, you have a Ruby module which is contains all the java.awt
classes:
f = JavaAwt::Frame.new “my frame”
Thanks,
–Vladimir
On Tue, Jul 8, 2008 at 3:43 PM, Paul F. [email protected] wrote:
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs