Just change your JAVA_HOME in the terminal you use maven. Personally when I work on a windows machine with multiple JDK installed, I use batch script to set a clean environment before doing anything (at least set a minimal PATH, and empty CLASSPATH and the correct JAVA_HOME).
Gilles > -----Original Message----- > From: Eugene Kirin [mailto:[EMAIL PROTECTED] > Sent: 23 December 2005 11:50 > To: Maven Users List > Subject: Re[2]: JDK path > > I can't set JAVA_HOME for java 5.0 because it used by java 1.4.2 > > > Set the JAVA_HOME environment variable. > > On windows it's with config panel/system/?/environment variables. > > > Eugene Kirin wrote: > >> Hello to all! > >> On my PC installed 2 JDK, 1.4.2 and 5.0. How should I point a path for > maven > >> 2 to use 5.0 JDK? > >> > >> Thanks for your responses! > > > > > -- > Ñ óâàæåíèåì, > Eugene mailto:[EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]