I'm trying to access the following static enum
public class Colors
{
public enum ListofColors
{
BLUE, RED, YELLOW
}
}
But I keep getting the error
NameError: cannot load Java class Colors.Colors::ListofColors::BLUE
When I try the following:
CL = JavaUtilities.get_proxy_class('Colors.Colors::ListofColors::BLUE')
but then I tried the following:
CL = JavaUtilities.get_proxy_class('Colors.Colors')
red = Colors.Colors::ListofColors::RED
And it gave me the following error:
NameError: uninitialized constant Colors
Is there a different way to get this static enum from the jar file and include it in Jruby without getting that errpr?
Thanks.