HI,
Sorry for the delay I was out....
Yes, The first thing I did was the install instructions.... Below is my environment and setup etc....
Thanks
-Brenden.
$ echo $SHELL
/bin/sh
$ which bash
/usr/bin/bash
$ bash
Thu Mar 27 09:23:29 EDT 2008
brenden
Thu Mar 27 09:24:14 EDT 2008
brenden
neo: slkdfjsljfaslkslkfj
bash: slkdfjsljfaslkslkfj: command not found
neo: cat .bash_profile
#
- Copyright (c) 2001 by Sun Microsystems, Inc.
- All rights reserved.
#
- ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
SHELL=/usr/bin/bash
PS1="`hostname`: "
JAVA_HOME=/usr/jdk/latest
GROOVY_HOME=/opt/groovy/groovy-1.5.4
PATH=$JAVA_HOME/bin:/usr/openwin/bin:/usr/bin:/usr/ucb:/etc:$GROOVY_HOME/bin:.
export JAVA_HOME GROOVY_HOME PATH
date
/usr/ucb/whoami
#who | wc -1
neo: echo $SHELL
/usr/bin/bash
neo: echo $GROOVY_HOME
/opt/groovy/groovy-1.5.4
neo: echo $PATH
/usr/jdk/latest/bin:/usr/openwin/bin:/usr/bin:/usr/ucb:/etc:/opt/groovy/groovy-1.5.4/bin:.
neo: echo $JAVA_HOME
/usr/jdk/latest
neo: jave -version
bash: jave: command not found
neo: java -version
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)
neo: groovy -version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/groovy/tools/GroovyStarter
Caused by: java.lang.ClassNotFoundException: org.codehaus.groovy.tools.GroovyStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcheneo: cd $GROOVY_HOME
neo: pwd
/opt/groovy/groovy-1.5.4
neo: cd bin
neo: more startGroovy
mode:sh
##############################################################################
-
- ##
- Groovy JVM Bootstrap for UN*X ##
- ##
##############################################################################
##
-
- $Revision$
- $Date$
##
PROGNAME=`basename "$0"`
#DIRNAME=`dirname "$0"`
SCRIPT_PATH="$0"
etc........
It looks like $GROOVY_HOME is not getting expanded as in:
at sun.misc.Launcheneo: cd $GROOVY_HOME
shouldn't the $GROOVY_HOME be expanded at this point???
Why wouldn't this be so??
is this the problem??
-Thanks
-Brenden.
The attached patch works for me in the following environment:
% uname -a
SunOS stitch 5.10 Generic_120012-14 i86pc i386 i86pc Solaris
% java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)