You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Holger Kreek <Ho...@uregina.ca> on 2011/04/15 19:43:12 UTC

Trying to Install Cocoon on a Windows PC

I am trying to install Cocoon on my PC.

I downloaded cocoon-2.1.11-src.zip to
a Microsoft Windows XP machine,
Professional version 2002, with Service Pack 3.

I set the JAVA_HOME variable so that the script
could find tools.jar and ran the build.bat command.

I get

C:\...\cocoon-2.1.11-src\cocoon-2.1.11\tools\targets\compile-build.xml:51: Compile failed; see the compiler error output for details.
...
C:\...\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\components\modules\input\XPathXMLFileModule.java:196: valueOf(java.lang.String) in java.lang.Boolean cannot be applied to (boolean)

            this.cacheSource = Boolean.valueOf(cacheAll);

                                      ^

C:\...\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\components\modules\input\XPathXMLFileModule.java:203: valueOf(java.lang.String) in java.lang.Boolean cannot be applied to (boolean)

            this.reloadSource = Boolean.valueOf(this.reloadAll);

                                       ^

2 errors
=========================================

How do I fix these problems?




-- 
 
Holger Kreek
Academic Data and Systems
Registrar's Office
University of Regina 
1911 - 2011 Excellence in Education 
306-585-4058
 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Trying to Install Cocoon on a Windows PC

Posted by Luca Morandini <lm...@ieee.org>.
On 04/15/2011 07:43 PM, Holger Kreek wrote:
>
> I set the JAVA_HOME variable so that the script could find tools.jar and ran
> the build.bat command.
>
> I get
>
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\tools\targets\compile-build.xml:51:
> Compile failed; see the compiler error output for details. ...
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\components\modules\input\XPathXMLFileModule.java:196:
> valueOf(java.lang.String) in java.lang.Boolean cannot be applied to (boolean)
>
> this.cacheSource = Boolean.valueOf(cacheAll);

I guess you have an old JDK (1.3.1 perhaps ?).


> How do I fix these problems?

Try switching JDK to 1.5.

Regards,

Luca Morandini
http://www.lucamorandini.it


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Trying to Install Cocoon on a Windows PC

Posted by Luca Morandini <lm...@ieee.org>.
On 04/15/2011 07:43 PM, Holger Kreek wrote:
>
> I set the JAVA_HOME variable so that the script could find tools.jar and ran
> the build.bat command.
>
> I get
>
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\tools\targets\compile-build.xml:51:
> Compile failed; see the compiler error output for details. ...
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\components\modules\input\XPathXMLFileModule.java:196:
> valueOf(java.lang.String) in java.lang.Boolean cannot be applied to (boolean)
>
> this.cacheSource = Boolean.valueOf(cacheAll);

I guess you have an old JDK (1.3.1 perhaps ?).


> How do I fix these problems?

Try switching JDK to 1.5.

Regards,

Luca Morandini
http://www.lucamorandini.it


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Trying to Install Cocoon on a Windows PC

Posted by Luca Morandini <lm...@ieee.org>.
On 04/15/2011 07:43 PM, Holger Kreek wrote:
>
> I set the JAVA_HOME variable so that the script could find tools.jar and ran
> the build.bat command.
>
> I get
>
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\tools\targets\compile-build.xml:51:
> Compile failed; see the compiler error output for details. ...
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\components\modules\input\XPathXMLFileModule.java:196:
> valueOf(java.lang.String) in java.lang.Boolean cannot be applied to (boolean)
>
> this.cacheSource = Boolean.valueOf(cacheAll);

I guess you have an old JDK (1.3.1 perhaps ?).


> How do I fix these problems?

Try switching JDK to 1.5.

Regards,

Luca Morandini
http://www.lucamorandini.it


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Trying to Install Cocoon on a Windows PC

Posted by Holger Kreek <Ho...@uregina.ca>.
Thanks, Luca.

Pointing JAVA_HOME to my 1.5.0_22 download directory
resulted in a successful build.  

Now onto my next step.



-- 
 
Holger Kreek
Academic Data and Systems
Registrar's Office
University of Regina 
1911 - 2011 Excellence in Education 
306-585-4058
 


>>> On Friday, April 15, 2011 at 3:59 PM, in message
<io...@dough.gmane.org>, Luca Morandini <lm...@ieee.org> wrote:
> On 04/15/2011 11:48 PM, Holger Kreek wrote:
>>
>> Luca:
>>
>> I may have an old JDK.  Our university has an Oracle-based ERP
>> system that evolved and I see a tools.jar in an Oracle\9I\jdk\lib directory
>> which may be a left over.
>>
>> According to the Java Control Panel, I also have a reference to a
>> Java runtime version 1.6.0_24 in \Program Files\Java\jres6\bin but
>> it has no tools.jar file.  I also have an empty
>> C:\Program Files\Java\jre1.5.0_04 which may be a result of
>> installing the 1.6 version.
>>
>> Because the scripts are looking for a tools.jar file, do I need to
>> re-install the 1.5 version or can I get a tools.jar for the 1.6 version
>> of Java?
> 
> Tools.jar is included in the JDK, not in the JRE (these are two different 
> download 
> options); hence, my advice is to install the JDK (not JRE) 1.5 and change 
> JAVA_HOME accordingly.
> 
> Regards,
> 
> Luca Morandini
> http://www.lucamorandini.it 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Trying to Install Cocoon on a Windows PC

Posted by Luca Morandini <lm...@ieee.org>.
On 04/15/2011 11:48 PM, Holger Kreek wrote:
>
> Luca:
>
> I may have an old JDK.  Our university has an Oracle-based ERP
> system that evolved and I see a tools.jar in an Oracle\9I\jdk\lib directory
> which may be a left over.
>
> According to the Java Control Panel, I also have a reference to a
> Java runtime version 1.6.0_24 in \Program Files\Java\jres6\bin but
> it has no tools.jar file.  I also have an empty
> C:\Program Files\Java\jre1.5.0_04 which may be a result of
> installing the 1.6 version.
>
> Because the scripts are looking for a tools.jar file, do I need to
> re-install the 1.5 version or can I get a tools.jar for the 1.6 version
> of Java?

Tools.jar is included in the JDK, not in the JRE (these are two different download 
options); hence, my advice is to install the JDK (not JRE) 1.5 and change 
JAVA_HOME accordingly.

Regards,

Luca Morandini
http://www.lucamorandini.it


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Trying to Install Cocoon on a Windows PC

Posted by Holger Kreek <Ho...@uregina.ca>.
Luca:

I may have an old JDK.  Our university has an Oracle-based ERP
system that evolved and I see a tools.jar in an Oracle\9I\jdk\lib directory
which may be a left over.

According to the Java Control Panel, I also have a reference to a
Java runtime version 1.6.0_24 in \Program Files\Java\jres6\bin but
it has no tools.jar file.  I also have an empty 
C:\Program Files\Java\jre1.5.0_04 which may be a result of
installing the 1.6 version.

Because the scripts are looking for a tools.jar file, do I need to
re-install the 1.5 version or can I get a tools.jar for the 1.6 version
of Java?




-- 
 
Holger Kreek
Academic Data and Systems
Registrar's Office
University of Regina 
1911 - 2011 Excellence in Education 
306-585-4058
 


>>> On Friday, April 15, 2011 at 1:10 PM, in message <4D...@ieee.org>,
Luca Morandini <lm...@ieee.org> wrote:
> On 04/15/2011 07:43 PM, Holger Kreek wrote:
>>
>> I set the JAVA_HOME variable so that the script could find tools.jar and ran
>> the build.bat command.
>>
>> I get
>>
>> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\tools\targets\compile-build.xml:51:
>> Compile failed; see the compiler error output for details. ...
>> 
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\components\mod
> ules\input\XPathXMLFileModule.java:196:
>> valueOf(java.lang.String) in java.lang.Boolean cannot be applied to 
> (boolean)
>>
>> this.cacheSource = Boolean.valueOf(cacheAll);
> 
> I guess you have an old JDK (1.3.1 perhaps ?).
> 
> 
>> How do I fix these problems?
> 
> Try switching JDK to 1.5.
> 
> Regards,
> 
> Luca Morandini
> http://www.lucamorandini.it 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
> For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Trying to Install Cocoon on a Windows PC

Posted by Luca Morandini <lm...@ieee.org>.
On 04/15/2011 07:43 PM, Holger Kreek wrote:
>
> I set the JAVA_HOME variable so that the script could find tools.jar and ran
> the build.bat command.
>
> I get
>
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\tools\targets\compile-build.xml:51:
> Compile failed; see the compiler error output for details. ...
> C:\...\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\components\modules\input\XPathXMLFileModule.java:196:
> valueOf(java.lang.String) in java.lang.Boolean cannot be applied to (boolean)
>
> this.cacheSource = Boolean.valueOf(cacheAll);

I guess you have an old JDK (1.3.1 perhaps ?).


> How do I fix these problems?

Try switching JDK to 1.5.

Regards,

Luca Morandini
http://www.lucamorandini.it


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org