java classpath for yajb

E

Elmar Schraml

Hi,

I'm trying to use a java class via yajb in Ruby on Rails.
yajb works fine for calling Java library classes, but I can't get my
own java classes to work.

I have:
- a class file anon.example.ImportTest in directory
/home/elmar/railswork/myapp/lib/java/anon/example
- a controller with JBRIDGE_OPTIONS = { :classpath =>
'/home/elmar/railswork/myapp/lib/java' }

yet instantiating a ruby variable like
testvar = jnew :ImportTest
fails.

Is there anything obvious I'm doing wrong?

Thanks for any help,
Elmar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top