$OpenBSD: patch-bin_setclasspath_sh,v 1.1 2003/12/15 21:25:06 sturm Exp $
--- bin/setclasspath.sh.orig	2003-07-31 13:29:58.000000000 -0400
+++ bin/setclasspath.sh	2003-10-16 22:04:13.000000000 -0400
@@ -4,10 +4,16 @@
 #  $Id: patch-bin_setclasspath_sh,v 1.1 2003/12/15 21:25:06 sturm Exp $
 # -----------------------------------------------------------------------------
 
+# Read $JAVA_HOME - sudo doesn't pass environment variables
+if [ -r "y0y0y0/tomcat/tomcat.rc" ]; then     
+  . y0y0y0/tomcat/tomcat.rc
+fi
+
 # Make sure prerequisite environment variables are set
 if [ -z "$JAVA_HOME" ]; then
   echo "The JAVA_HOME environment variable is not defined"
   echo "This environment variable is needed to run this program"
+  echo "Edit \`y0y0y0/tomcat/tomcat.rc' to point to your \$JAVA_HOME"
   exit 1
 fi
 if $os400; then
