You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Quentel <mq...@4dm-inc.com> on 2009/06/05 00:55:32 UTC

Trinidad maven build errors on WindowsXP

On WindowsXP workstation...

1.  I installed JDK1.5 to C:\jdk1.5.0_19

2.  I have set the settings.xml for Maven to point jdk.5 to C:\jdk1.5.0_19

3.  I had JDK 1.6 installed on my workstation, then uninstalled it.

4.  At the command line, I did set JAVA_HOME= C:\jdk1.5.0_19

5.  When I try to run the command mvn clean install ......

I still get the following build error: 

[INFO] Compilation failure
Unable to locate the Javac Compiler in:
  C:\jdk1.5.0_19\..\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.

Please, any advice on how to get this to work?  I only wanted to get some
kind of Trinidad examples demo WAR file, but I cannot even seem to find a
properly working version of it at Apache.  I thought that perhaps if I
download the entire Trinidad trunk via SVN, then attempt to build via MVN,
I'd get a working demo example.  What would be very helpful is to see a demo
of various user controls that includes the actual JSF source (the irian.net
examples do not seem to feature this).

Thanks,

Mike Quentel



RE: Trinidad maven build errors on WindowsXP

Posted by Mike Quentel <mq...@4dm-inc.com>.
Thank you Matthias; I downloaded the pom.xml, and ensured that the Maven
settings on my computer (C:\maven\apache-maven-2.1.0\conf\settings.xml)
specify: 

    <profile>
      <id>jdk5.home</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <jdk5.home>C:\jdk1.5.0_19</jdk5.home>
      </properties>
    </profile>

However, I still get the same compile errors.  By default, my JAVA_HOME is
set to 1.6; before running mvn clean install, I do this: 

set JAVA_HOME=C:\jdk1.5.0_19

Then: 

mvn clean install

Still get build errors: 

[ERROR] BUILD FAILURE
[INFO] ----------------------------------------------------------
[INFO] Compilation failure
Unable to locate the Javac Compiler in:
  C:\jdk1.5.0_19\..\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.

Thank you,

Mike Quentel

-----Original Message-----
From: On Behalf Of Matthias W
Sent: 4 June 2009 22:05
To: MyFaces Discussion
Subject: Re: Trinidad maven build errors on WindowsXP

hey mike,

I think it is the issue with the JDK profiles.

See my commit (I enabled it again, after I screwed it up before):
http://svn.apache.org/viewvc?view=rev&revision=781495

and the pom.xml has some information as well:
http://svn.apache.org/viewvc/myfaces/trinidad/trunk/pom.xml

(search for the "allow people that use Java6 (or above) as their" section)

On Thu, Jun 4, 2009 at 3:55 PM, Mike Quentel <mq...@4dm-inc.com> wrote:
> On WindowsXP workstation...
>
> 1.  I installed JDK1.5 to C:\jdk1.5.0_19
>
> 2.  I have set the settings.xml for Maven to point jdk.5 to C:\jdk1.5.0_19
>
> 3.  I had JDK 1.6 installed on my workstation, then uninstalled it.
>
> 4.  At the command line, I did set JAVA_HOME= C:\jdk1.5.0_19
>
> 5.  When I try to run the command mvn clean install ......
>
> I still get the following build error:
>
> [INFO] Compilation failure
> Unable to locate the Javac Compiler in:
>  C:\jdk1.5.0_19\..\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.
>
> Please, any advice on how to get this to work?  I only wanted to get some
> kind of Trinidad examples demo WAR file, but I cannot even seem to find a
> properly working version of it at Apache.  I thought that perhaps if I
> download the entire Trinidad trunk via SVN, then attempt to build via MVN,
> I'd get a working demo example.  What would be very helpful is to see a
demo
> of various user controls that includes the actual JSF source (the
irian.net
> examples do not seem to feature this).
>
> Thanks,
>
> Mike Quentel
>
>
>



-- 
Matthias W


Re: Trinidad maven build errors on WindowsXP

Posted by Matthias Wessendorf <ma...@apache.org>.
hey mike,

I think it is the issue with the JDK profiles.

See my commit (I enabled it again, after I screwed it up before):
http://svn.apache.org/viewvc?view=rev&revision=781495

and the pom.xml has some information as well:
http://svn.apache.org/viewvc/myfaces/trinidad/trunk/pom.xml

(search for the "allow people that use Java6 (or above) as their" section)

On Thu, Jun 4, 2009 at 3:55 PM, Mike Quentel <mq...@4dm-inc.com> wrote:
> On WindowsXP workstation...
>
> 1.  I installed JDK1.5 to C:\jdk1.5.0_19
>
> 2.  I have set the settings.xml for Maven to point jdk.5 to C:\jdk1.5.0_19
>
> 3.  I had JDK 1.6 installed on my workstation, then uninstalled it.
>
> 4.  At the command line, I did set JAVA_HOME= C:\jdk1.5.0_19
>
> 5.  When I try to run the command mvn clean install ......
>
> I still get the following build error:
>
> [INFO] Compilation failure
> Unable to locate the Javac Compiler in:
>  C:\jdk1.5.0_19\..\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.
>
> Please, any advice on how to get this to work?  I only wanted to get some
> kind of Trinidad examples demo WAR file, but I cannot even seem to find a
> properly working version of it at Apache.  I thought that perhaps if I
> download the entire Trinidad trunk via SVN, then attempt to build via MVN,
> I'd get a working demo example.  What would be very helpful is to see a demo
> of various user controls that includes the actual JSF source (the irian.net
> examples do not seem to feature this).
>
> Thanks,
>
> Mike Quentel
>
>
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf