Hi All,
I am attempting to use a third party java class in a script. Simply
using a
include_class on the classname throws the following error:
C:\work\jruby\xel>c:\jruby-1.0.1\bin\jruby.bat test.rb :1:in each': wrong constant name tcUtilityFactory (NameError) from file:/C:/jruby-1.0.1/lib/jruby.jar!/builtin/javasupport/core_ext/object.rb:28:in
include_class’
from :1
My script is very simple:
require ‘java’
include_class ‘Thor.API.tcUtilityFactory’
puts “foo”
I am using JRuby 1.0.1 on Windows XP.
I would appreciate any pointers towards this issue. Google does not seem
to
be helpful.
Thanks!
Amol