Subject: Re: Java (especially JDK) and running Tomcat on NetBSD
To: Timo Schoeler <timo.schoeler@riscworks.net>
From: Urban Boquist <urban@boquist.net>
List: netbsd-help
Date: 11/16/2005 23:02:38
>>>>> Timo Schoeler writes:
Timo> deneb# /etc/rc.d/tomcat5 start
Timo> Starting tomcat.
Timo> The JAVA_HOME environment variable is not defined
Timo> This environment variable is needed to run this program
It's been a while since I used Tomcat from pkgsrc and I remember few
details, but this error I do remember. I managed to dig out the patch
below that I had to use to make it work. I'm not sure why I did not
send-pr this, it was a while ago. :)
Best regards,
-- Urban
Index: pkgsrc/www/jakarta-tomcat/Makefile
===================================================================
RCS file: /anoncvs/pkgsrc/www/jakarta-tomcat/Makefile,v
retrieving revision 1.49
diff -u -r1.49 Makefile
--- pkgsrc/www/jakarta-tomcat/Makefile 11 Oct 2004 21:15:48 -0000 1.49
+++ pkgsrc/www/jakarta-tomcat/Makefile 30 Nov 2004 18:25:53 -0000
@@ -45,7 +45,7 @@
.endfor
.undef f
-FILES_SUBST+= JAVA_HOME=${PKG_JVM_HOME} TOMCAT_LIB=${TOMCAT_LIB}
+FILES_SUBST+= JAVA_HOME=${PKG_JAVA_HOME} TOMCAT_LIB=${TOMCAT_LIB}
do-build:
@${MV} ${WRKSRC}/conf ${WRKDIR}