Problem accessing java with jruby file

Hi,

I have a java file and a jruby file in same package(com.nancy) in same
project.
I am trying to access the java file by doing:-

require’java’
include_class ‘com.nancy.MyExample’

This throws me “cannot load java class(Name Error)”

Can somebody help me with what am i missing?