Forum: JRuby Problem accessing java with jruby file.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nancy S. (Guest)
on 2009-05-08 11:02
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?
This topic is locked and can not be replied to.