I have never seen this problem and I have both a jdk and a jre installed.

On 3/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear List,
>
> I recently upgraded my JDK from 1.5.0_04 to 1.5.0_06.  Now when I run
>
>       mvn compile
>
> I get the following error:
>
> Unable to locate the Javac Compiler in:
>   C:\Program Files\Java\jre1.5.0_06\..\lib\tools.jar
> Please ensure you are using JDK 1.4 or above and
> not a JRE (the com.sun.tools.javac.Main class is required).
> In most cases you can change the location of your Java
> installation by setting the JAVA_HOME environment variable.
>
> Note that JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_06.
>
> There appears to be a built-in assumption somewhere within
> maven-compiler-plugin that ${java.home} == ${jre.home}\..  While this was
> true under jdk1.5.0_04, it is not the case with jdk1.5.0_06 (The JDK is
> installed under C:\Program Files\Java\jdk1.5.0_06, while the JRE is
> installed under C:\Program Files\Java\jre1.5.0_06).  I've tried tracking
> down the place in the code where this assumption is made, so that I could
> submit a patch, and got as far as
> org.codehaus.plexus.compiler.manager.CompilerManager, but I haven't been
> able to track down the location of the Plexus SVN repository to research
> further.
>
> Before I post a bug report, has any body else encountered this problem, and
> is there a patch and/or work around available?
>
>
> Thanks,
> Ian
>
> It's better to be hated for who you are
> than loved for who you are not
>
> Ian D. Stewart
> Appl Dev Analyst-Advisory, DCS Automation
> JPMorganChase Global Technology Infrastructure
> Phone: (614) 244-2564
> Pager: (888) 260-0078
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to