Monkeybars – Little bug

Posted by on September 10, 2009

For a little side project I am currently evaluating different ways of GUI programming using Ruby. Monkeybars is one of the most interesting candidates. There is a really good article about it, if you want to learn more.
Version 1.0.4 has a little, but annoying bug: If you generate a new application skeleton it won’t compile/run:

manifest.rb:32:in `require': no such file to load -- monkeybars (LoadError)
	from manifest.rb:32
	from manifest.rb:21:in `require'
	from main.rb:21

To fix it, you got to change line 21 of manifest.rb:

add_to_classpath '../lib/java/monkeybars-1.0.2.jar'
#to
add_to_classpath '../lib/java/monkeybars-1.0.4.jar'
Comments

Respond | Trackback

  1. James Britt September 11, 2009 4:31 pm

    Yeah, the hard-coding of the version string is annoying; it has to be updated each time the monkeybars lib version changes.

    In Jimpanzee, my fork of Monkeybars, I’ve been using this in manifest.rb

    def jimpanzee_jar path
    Dir.glob(path).select { |f| f =~ /(jimpanzee-)(.+).jar$/}.first
    end

    #…
    here = File.expand_path File.dirname(__FILE__)
    add_to_classpath jimpanzee_jar( here + ‘/../lib/java/*.jar’ )

    so it should find the Jimpanzee jar regardless of version number.

  2. Moser September 11, 2009 6:14 pm

    That sounds better :-)
    I was wondering how active Monkeybars development is lately, do you still actively develop/maintain your fork?

  3. James October 15, 2009 1:00 am

    It’s in quasi limbo, as I’ve been more busy with Web work than desktop apps, but I am planning some updates to JotBot and will revisit the the code and related libraries (such as Neurogami::Swingset). I’m pretty sure Logan Barnett is still active with Monkeybars.

Comments

Comments: