The problem is that for some reason, maven redirects the java.home variable to jre, so if your java_home is currently pointing at c:\j2sdk1.5.0_08, maven will add jre to the end of that. With the incorrect java_home variable, the tools.jar file can't be found.
Take a look here: http://www.mail-archive.com/[email protected]/msg57981.html Mayorgaadame, Alex [IT] wrote: > > Xavier, > > I've seen something similar just yesterday. Can you share your stack > traces? > > mvn goal -X > > Also which version of ant is maven using, mine was 1.6.5 and fails like: > > Embedded error: The following error occurred while executing this line: > /home/am74839/sree/esf_samples_build.xml:162: Unable to find a javac > compiler; > com.sun.tools.javac.Main is not on the classpath. > Perhaps JAVA_HOME does not point to the JDK > > Regards, > Alex > > -----Original Message----- > From: Xavier Toth [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 09, 2006 11:26 AM > To: Maven Users List > Subject: [m2] maven-antrun-plugin classpath related behavior changed > > > maven-antrun-plugin executions that had been working are failing with > classpath related issues (classnotfound). I'm thinking maybe I've picked > up > a newer version of the plugin and it's behavior is different. Is anyone > else > experiencing these types of problems? > > Xavier > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-m2--maven-antrun-plugin-classpath-related-behavior-changed-tf1253800s177.html#a8147998 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
