[rjb-users] rjb and enum type in Java

rjb-users at rubyforge.org rjb-users at rubyforge.org
Fri Oct 5 15:39:54 EDT 2007


Hi,

I try from few hours import enum type class into ruby. I have a Java
class which is defined like:

package mylib;
public class SomeClass extends OtherClass
{
	public enum MyTypes
	{
		TYPEA, TYPEB,TYPEC
	};
...
...
}

when I try to import "SomeClass" using:

Rjb.import('mylib.SomeClass.MyTypes')

I got only "NoClassDefFoundError"

using this:

c=Rjb.import('mylib.SomeClass')
a=c.MyTypes

gives me:
RuntimeError: Fail: unknown method name `MyTypes'


Please, help me. Is that any way to import enum type?

Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rjb-users/attachments/20071005/8961930b/attachment.html 


More information about the rjb-users mailing list