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
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