cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Damioli <cdami...@apache.org>
Subject Re: Not able to build and run Cocoon
Date Mon, 11 Feb 2013 19:18:54 GMT
Hi Kiran,

With which JDK (vendor and version) are you trying to build Cocoon 2.1.11 ?

Besides, the right place for your question would certainly be the users 
mailing-list: users@cocoon.apache.org rather than the dev one, you may 
have more answers there.

Regards,
Cédric

Le 11/02/2013 19:12, Kiran Rangarajan a écrit :
> Hello,
>
> I have Java and JDK set up on my system. When I build Cocoon I get the 
> following error. I am not able to figure out what is wrong. Can you 
> please help me out with it.
>
> The errors are:
>
> C:\Program Files\cocoon-2.1.11-src\cocoon-2.1.11>build.bat
>
> Buildfile: build.xml
>
> prepare:
>
> ====================================================================
>
> Apache Cocoon 2.1.11 [1999-2007]
>
> ====================================================================
>
> Building with Apache Ant version 1.6.5 compiled on June 2 2005
>
> --------------------------------------------------------------------
>
> Using build file C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\build.xml
>
> --------------------------------------------------------------------
>
> Compiler options:
>
>    - debug ......... [on]
>
>    - optimize ...... [on]
>
>    - deprecation ... [off]
>
> ====================================================================
>
> compile-core:
>
> Compiling 596 source files to C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\b
>
> uild\cocoon\classes
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:39: error: package com.sun.image.codec.jpeg does 
> not exist
>
> import com.sun.image.codec.jpeg.ImageFormatException;
>
> ^
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:40: error: package com.sun.image.codec.jpeg does 
> not exist
>
> import com.sun.image.codec.jpeg.JPEGCodec;
>
> ^
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:41: error: package com.sun.image.codec.jpeg does 
> not exist
>
> import com.sun.image.codec.jpeg.JPEGEncodeParam;
>
> ^
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:42: error: package com.sun.image.codec.jpeg does 
> not exist
>
> import com.sun.image.codec.jpeg.JPEGImageEncoder;
>
> ^
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:326: error: cannot find symbol
>
> JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
>
> ^
>
>   symbol:   class JPEGImageEncoder
>
>   location: class ImageReader
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:326: error: cannot find symbol
>
> JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
>
> ^
>
>   symbol:   variable JPEGCodec
>
>   location: class ImageReader
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:327: error: cannot find symbol
>
> JPEGEncodeParam p = encoder.getDefaultJPEGEncodeParam(curren
>
> tImage);
>
> ^
>
>   symbol:   class JPEGEncodeParam
>
>   location: class ImageReader
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:333: error: cannot find symbol
>
> JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bstre
>
> am);
>
> ^
>
>   symbol:   class JPEGImageEncoder
>
>   location: class ImageReader
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:333: error: cannot find symbol
>
>            JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bstre
>
> am);
>
> ^
>
>   symbol:   variable JPEGCodec
>
>   location: class ImageReader
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:334: error: cannot find symbol
>
> JPEGEncodeParam p = encoder.getDefaultJPEGEncodeParam(curren
>
> tImage);
>
> ^
>
>   symbol:   class JPEGEncodeParam
>
>   location: class ImageReader
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\src\java\org\apache\cocoon\read
>
> ing\ImageReader.java:342: error: cannot find symbol
>
> } catch (ImageFormatException e) {
>
> ^
>
>   symbol:   class ImageFormatException
>
>   location: class ImageReader
>
> 11 errors
>
> BUILD FAILED
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\tools\targets\compile-build.xml
>
> :68: The following error occurred while executing this line:
>
> C:\Program 
> Files\cocoon-2.1.11-src\cocoon-2.1.11\tools\targets\compile-build.xml
>
> :51: Compile failed; see the compiler error output for details.
>
> Total time: 17 seconds
>
> C:\Program Files\cocoon-2.1.11-src\cocoon-2.1.11>
>
>
>
> Thanks a lot for your help.
>
>
> Regards
>
> Kiran Rangarajan
>
>
> -- 
> Cédric Damioli
> Ametys CMS
> http://www.ametys.org
> http://www.anyware-services.com

Mime
View raw message