I think you hit this namespace conflict problem: http://jira.codehaus.org/browse/JRUBY-45 so it seems you need to use kp.java_send :initialize, 2048 instead.
On Wed, Oct 17, 2012 at 3:56 PM, Carl Bourne <carl.bou...@me.com> wrote: > Hi, > > I'm trying to use the java.security.KeyPairGenerator via JRuby 1.7 RC2 as > per the following code: > > require 'java' > kp = java.security.KeyPairGenerator.getInstance("RSA") > puts kp #java.security.KeyPairGenerator$Delegate@45f177b > > However, when I try to call initialize i.e. > > kp.initialize(2048) > > I get the following exception:- > > TypeError: no public constructors for #<Class:0x7efe8e7a> > > Any suggestions would be very much appreciated. > > Best Regards, > > Carl > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email