I’m checking out “Glimmer”, a DSL which provides a simple interface to
SWT library for desktop app development. I’m trying to modify a supplied
sample app, a contact manager, so that it loads contacts from a database
(activerecord-jdbcsqlite3) instead of using hard-coded values.
When I run the script (without warnings) I get -
“Processing method: text and args: [“Contact Manager”]
`add_with_safety’: can’t convert nil into String (TypeError)”
which would seem to indicate that I’m passing a nil object. In irb, the
and format look good to me - but I’m a newbie.
When I run it with jruby -w, I get - “Processing method: text and args:
java.lang.ClassNotFoundException: org.eclipse.swt.Table” before the
There is a Table in swt.jar but it’s in org.eclipse.swt.widgets. Is this
name conflict with another Table? and if so how do I resolve it?
BTW, I’ve tried restoring the original (hard-coded) instantiation of
contacts from values and commenting out ALL my code, except for -
‘active_record’ - in which case, I still get the errors.
So is this a name collision, a conflict with ActiveRecord or just
I’m doing wrong?
Any ideas greatly appreciated!
View this message in context:
Sent from the JRuby - User mailing list archive at Nabble.com.
To unsubscribe from this list, please visit: