On Sat, Jun 7, 2008 at 11:20 PM, James Britt <james.britt / gmail.com> wrote:
> Leslie Viljoen wrote:
>
>>
>> I understand your dread - I have the same dread, and the same problems
>> getting
>> Java + XYZ to work. I actually currently have a Netbeans install that
>> I have tried
>> to use the built-in plugin installer to install Ruby support - after
>> incomprehensible
>> errors it knows nothing of Ruby. Busy re-downloading. I tried monkeybars
>> and the
>> tutorials for a few hours and failed completely.  Perhaps it is very
>> good, but it is
>> surely also very complicated.
>
> If you honestly believe that then we (the Monkeybars crew) have failed
> someplace, perhaps in the docs or the screencasts, because the last thing we
> want is anything complicated.
>
> Now, granted, I'm biased (I'm a Monkeybars contributer and have been
> building production apps  with it for almost a year), but if you can tell me
> (off-list, perhaps) what you thought was complicated, I will see what I can
> do to help you out.

I don't think you failed, and it's not that the process is complex,
it's that the whole setup is
complex. I think Matisse is a fantastic GUI builder and have been
eagerly waiting for it to
support Ruby for ages now (even spoke to the developer for a while) so
I am glad there's
finally a solution for wiring it into Ruby. It's just that Ruby + Java
+ Packages + Netbeans + dependencies + MVC framework + updating + etc.
is a very slow 50 step process with a
huge number of dependencies.

I have just now finished that process for the second time and I still
don't have anything to see.
I must have missed something. I watched all the videos and followed
all the tutorials here:
http://monkeybars.rubyforge.org/tutorials.html

The last page seems to be here:
http://monkeybars.rubyforge.org/tutorials/netbeans.html .. which talks
about RAWR. Rawr install just seems to have added to my Rakefile, and
I don't know what to do now. Do I start making forms? Do I run one of
the RAWR tasks? The link at the bottom of that page points back to
"using the generator" which I have already done. The link after that
is an overview page which is rather long and sounds good but still
doesn't get me to just plain connect a form to my app!

When I got to this point before I started looking at the view,
thinking that it would be somehow related to a form I might build with
Matisse. I tried putting things into the quotes after set_java_class.

If I click "run" now I get to choose something to do with RAWR from a
combo box and then I get:

init:
deps-jar:
Created dir: /home/lesliev/dev/ruby-gui/demo/build/classes
Compiling 1 source file to /home/lesliev/dev/ruby-gui/demo/build/classes
/home/lesliev/dev/ruby-gui/demo/src/org/rubyforge/rawr/Main.java:11:
package org.jruby does not exist
import org.jruby.Ruby;
/home/lesliev/dev/ruby-gui/demo/src/org/rubyforge/rawr/Main.java:12:
package org.jruby.javasupport does not exist
import org.jruby.javasupport.JavaEmbedUtils;
/home/lesliev/dev/ruby-gui/demo/src/org/rubyforge/rawr/Main.java:19:
cannot find symbol
symbol  : class Ruby
location: class org.rubyforge.rawr.Main
    Ruby runtime = JavaEmbedUtils.initialize(new ArrayList(0));
/home/lesliev/dev/ruby-gui/demo/src/org/rubyforge/rawr/Main.java:19:
cannot find symbol
symbol  : variable JavaEmbedUtils
location: class org.rubyforge.rawr.Main
    Ruby runtime = JavaEmbedUtils.initialize(new ArrayList(0));
4 errors
BUILD FAILED (total time: 2 seconds)


So you see, it's complicated.

Les