Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2005 12:18:29 +0100
From:      Ashley Moran <work@ashleymoran.me.uk>
To:        freebsd-java@freebsd.org
Subject:   Re: JBoss ports do not respect the user's JAVA_VERSION
Message-ID:  <433BCD85.10808@ashleymoran.me.uk>
In-Reply-To: <433BC658.7000808@ebs.gr>
References:  <433BC658.7000808@ebs.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
Panagiotis Astithas wrote:
> The jboss ports build along the jboss3ctl (or jboss4ctl) and hardcode in 
> it the JAVA_HOME it uses during the build. This makes it impossible to 
> change the jdk afterwards without rebuilding.
> 
> Unfortunately, it seems that you cannot build jboss3/4 with jdk15, when 
> you also have jdk14 installed. This is caused by the port specifying the 
> java version like this:
> 
> JAVA_VERSION=   1.4+
> 
> I have modified this to:
> 
> JAVA_VERSION?=  1.4+
> 
> Actually grepping through the java category shows that almost all 
> java-dependent ports, behave like that. Shouldn't we make a sweep and 
> fix them all?
> 
> 
> Panagiotis

I had a similar problem.  I had to hack my /usr/ports/Mk/bsd.java.mk 
file to set the preferred JDK to native/1.5 to get tomcat to compile 
against JDK 1.5.  I was wondering when this file will be updated to 
support the latest JDK (even if native/1.4 is left as the default).

Ashley



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?433BCD85.10808>