Unfortunately, I don’t have control over that package; though, I have
Java programs that call that package, so I think it’s legal, if not
ugly.
I’ve tried import and include_class, and neither has worked. I think the
other suggestion won’t work, because the class loader won’t know that
class exists until I import it.
I’m happy to file a bug. What form should the specs take? Is the problem
that JRuby doesn’t like a package beginning with an underscore,
containing an underscore? Numbers? Only numbers? Etc.
Are there any other suggestions? I have to ship this by the end of next
week 
Thanks for your help,
Chris
On 12/4/08 11:40 AM, “Charles Oliver N.” [email protected]
wrote:
Chris W. wrote:
I have a class of the form “foo._2008_08_01.ClassName” and when I
require the file that has this import, I get the following error:
“NameError: cannot load Java class foo._2008_08_01”
I have tried with 1.1.5 and 1.1.6RC1 with the same results. Any idea
what might be going on here?
Ugh…first smack whoever put that in the package name. Done? We can
move on now. 
There are a few ways you should be able to access the class. Have you
tried import with “foo._2008_08_01.ClassName”? include_class? If neither
of those work we can find another way for you, probably something like
this:
cls = java.lang.Class.forName ‘foo._2008_08_01.ClassName’
ClassName = JavaUtilities.get_proxy_class(cls)
If you can come up with specs (for /spec/java_integration in
repo) we can look at making it work like you expect. File a bug.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email