Subject: Re: JAVA_HOME and sun-jre
To: David Brownlee <abs@netbsd.org>
From: Matthias Scheler <tron@zhadum.de>
List: tech-pkg
Date: 08/07/2001 21:36:07
On Tue, Aug 07, 2001 at 06:45:15PM +0100, David Brownlee wrote:
> 	pkgsrc sets JAVA_HOME to ${LOCALBASE}/java/jre if sun-{jdk,jre} is
> 	selected.

Yes, because that's where "sun-jre" has its JVM binary.

>      Unfortunately this breaks anything like jakarta-tomcat
> 	which needs to compile java.

Then fix the package. You could invent a variable pointing to the path
of the Java compiler. "bsd.pkg.mk" alreadys adds a build dependence
to the "sun-jdk" package if "USE_JAVA" is defined.

	Kind regards

-- 
Matthias Scheler                                  http://scheler.de/~matthias/