I don’t know much about the NetBeans world, Eclipse contributor and
that I am. I do know that in my Eclipse plugin Groovy Monkey, I have
enabled JRuby as one of the languages that you can write scripts for. I
have also tested the plugin with an Eclipse distribution as small as the
Why might that relate to your question? Well Eclipse is run on an OSGi
container (one of its strengths IMHO) and the Eclipse RCP is an OSGi
container with a couple of megabytes of Eclipse bundles like resources,
core, runtime and SWT/JFace. I have put thought into extending Groovy
Monkey down to just the bare bones OSGi container, but haven’t had the
or really the push to get it done.
As far as using JRuby on OSGi and writing bundles in OSGi, I am not so
certain. I know it is possible for the Groovy language for instance,
wrote a blog entry on the issues concerning that:
Still I know alot of this is specific to Groovy and the Eclipse
but hey the Eclipse platform running on Equinox (Eclipse’s OSGi
is the number one example of an OSGi container (I’m sure to a bit of
to OSGi folks like Peter Kriens).
In my opinion, if the JRuby compiler takes Ruby scripts and produces
code that can be packaged in an OSGi bundle and you provide the JRuby
runtime as an OSGi library bundle for that container, it should work.
Another aside, take a look at Glimmer. It is a SWT builder plugin for
Eclipse that allows you to write SWT/JFace code in Ruby. I have a mind
try to incorporate it into Groovy Monkey. The URL for glimmer is:
The author for Glimmer is Andy M. and he blogs about it at:
So there should be some examples, sorry they are all Eclipse specific.
would be curious to know if there is any activity of this sort on the
NetBeans side of the world.
James E. Ervin, IV
A human being should be able to change a diaper, plan an invasion,
hog, conn a ship, design a building, write a sonnet, balance accounts,
a wall, set a bone, comfort the dying, take orders, give orders,
act alone, solve equations, analyze a new problem, pitch manure, program
computer, cook a tasty meal, fight efficiently, die gallantly.
Specialization is for insects.
-Robert A. Heinlein