On 21/11/05, Mark Hobson <[EMAIL PROTECTED]> wrote: > On 21/11/05, Brett Porter <[EMAIL PROTECTED]> wrote: > > The same. You need to set JAVA_HOME to the JDK, not the JRE. > > I have the env var JAVA_HOME set to "C:\Progra~1\Java\jdk1.5.0_04", > but the JRE java.exe takes precedence and thus the sysprop java.home > points to the JRE. Not sure how plexus compiler is working if it uses > the same method..?
Looking at the scripts it seems due to mvn and bootstrap using different java.exe's: * mvn.sh first invokes java via $JAVA_HOME/bin/java, if defined and it exists, thus java.home sysprop points to the JDK * bootstrap.sh just invokes straight java, thus using the os path precedence which picks up the JRE, so the sysprop points to the JRE The proper fix would be for bootstrap.sh to use the same JAVACMD lookup as mvn.sh. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]