Therefore, by research, trial and error, I came up with this simple method which WORKS:
- Download the Sun Java JDK RPM and install it.
- Download the unofficial Groovy binary RPM from Codehaus.org and install it.
- Download the GraphicsBuilder module from Codehaus, too.
- Unzip GraphicsBuilder in /tmp.
- export GROOVY_HOME=/usr/share/groovy
- Drop all the GraphicsBuilder jar files into $GROOVY_HOME/lib.
- Copy or move the GraphicsBuilder bin directory to $GROOVY_HOME.
- Add the following lines to your .bashrc:
export GROOVY_HOME=/usr/share/groovy
export JAVA="sun"
export JPATH="/usr/java/default"
export JAVA_HOME="$JPATH"
export CLASSPATH="$JPATH/lib:/usr/share/groovy/lib"
*THEN* make sure you add /usr/java/default/bin BEFORE /usr/bin in the shell PATH!
NOW you can use groovy from a bash command prompt (at last!)