# Method missing

**URL:** <https://www.ruby-forum.com/t/method-missing/153171>\
**Category:** JRuby\
**Created:** [November 12, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/method-missing/153171 "2008-11-12T22:16:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eipipuz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbe5ce/32.png) [@eipipuz](https://www.ruby-forum.com/u/eipipuz)\
**Post date:** [November 12, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/method-missing/153171/1 "2008-11-12T22:16:20Z")

</div>

Hello guys,

I am receiving the following error:

/usr/local/jruby-1.1.4/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/  
active\_support/dependencies.rb:510:in `method\_missing’: cannot load  
Java class

The jar file is located in the Jruby\_home/lib. The class name and the  
path is correctly typed. The code line when the error happens is like  
this: Java::com.mypackage.myClass

any ideas?

Thanks,

GA

---

<div class="post-metadata">

**Author:** ![eipipuz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbe5ce/32.png) [@eipipuz](https://www.ruby-forum.com/u/eipipuz)\
**Post date:** [November 12, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/method-missing/153171/2 "2008-11-12T23:08:31Z")

</div>

Guillermo A. wrote:

> Hello guys,
> 
> I am receiving the following error:
> 
> /usr/local/jruby-1.1.4/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active\_support/dependencies.rb:510:in  
> `method\_missing’: cannot load Java class
> 
> The jar file is located in the Jruby\_home/lib. The class name and the  
> path is correctly typed. The code line when the error happens is like  
> this: Java::com.mypackage.myClass

Can you show the full error? Can you run JRuby and access that class in  
a simple script?

- Charlie

* * *

To unsubscribe from this list, please visit:

```
http://xircles.codehaus.org/manage_email

```
