Forum: JRuby JRuby fails to find Time.parse

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ef31027f8a39cb4b822094019a884849?d=identicon&s=25 Jean Lazarou (Guest)
on 2009-01-06 00:56
(Received via mailing list)
With version:

D:\temp>jruby -v
jruby 1.1.4 (ruby 1.8.6 patchlevel 114) (2008-08-28 rev 7570) [x86-java]

When calling the parse method of the Time class, I get a NoMethodError
(see jirb session)

D:\temp>jirb
irb(main):001:0> Time.parse('1/1/2000')
NoMethodError: undefined method `parse' for Time:Class
        from (irb):2:in `binding'
        from C:/java/jruby/lib/ruby/1.8/irb.rb:150:in `eval_input'
        from C:/java/jruby/lib/ruby/1.8/irb.rb:259:in `signal_status'
        from C:/java/jruby/lib/ruby/1.8/irb.rb:147:in `eval_input'
        from C:/java/jruby/lib/ruby/1.8/irb.rb:146:in `eval_input'
        from C:/java/jruby/lib/ruby/1.8/irb.rb:70:in `start'
        from C:/java/jruby/lib/ruby/1.8/irb.rb:69:in `catch'
        from C:/java/jruby/lib/ruby/1.8/irb.rb:69:in `start'
        from C:\java\jruby\bin\jirb:19
irb(main):002:0>

Any idea?

Jean





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
13313ac2ec7ba7c43b1b952db034ff3b?d=identicon&s=25 Thomas E Enebo (Guest)
on 2009-01-06 01:55
(Received via mailing list)
You are missing 'require "time"'.  You should see the same problem
using C impl of Ruby too.

-Tom

On Mon, Jan 5, 2009 at 5:55 PM, Jean Lazarou <jeanlazarou@yahoo.com>
wrote:
>        from (irb):2:in `binding'
> Any idea?
>    http://xircles.codehaus.org/manage_email
>
>
>



--
Blog: http://www.bloglines.com/blog/ThomasEEnebo
Email: enebo@acm.org , tom.enebo@gmail.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Ef31027f8a39cb4b822094019a884849?d=identicon&s=25 Jean Lazarou (Guest)
on 2009-01-06 20:49
(Received via mailing list)
;)




----- Original Message ----
From: Thomas E Enebo <tom.enebo@gmail.com>
To: user@jruby.codehaus.org
Sent: Tuesday, January 6, 2009 1:54:29 AM
Subject: Re: [jruby-user] JRuby fails to find Time.parse

You are missing 'require "time"'.  You should see the same problem
using C impl of Ruby too.

-Tom

On Mon, Jan 5, 2009 at 5:55 PM, Jean Lazarou <jeanlazarou@yahoo.com>
wrote:
>        from (irb):2:in `binding'
> Any idea?
>    http://xircles.codehaus.org/manage_email
>
>
>



--
Blog: http://www.bloglines.com/blog/ThomasEEnebo
Email: enebo@acm.org , tom.enebo@gmail.com

---------------------------------------------------------------------
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
This topic is locked and can not be replied to.