Build failed for ICEpdf
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Build failed for ICEpdf  XML
Forum Index -> ICEpdf General
Author Message
joskiny

Joined: 07/09/2011 12:12:27
Messages: 2
Offline


Hello.

Just conforming to instructions in ICEpdf wiki, I tried to have core and viewer built.

Ant info:
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

Java info:
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

System info: Windows Vista Enterprise, 32 bits

What I get:
D:\ICEpdf\ICEpdf-4.2.2-src\icepdf>ant
Buildfile: D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\build.xml

build.all:

update.product.info:
[copy] Copying 1 file to D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core\src\org\ice
pdf\core\application

compile:
[mkdir] Created dir: D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core\build\classes
[javac] D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\examples\etc\build-common.xml:95:
warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
set to false for repeatable builds
[javac] Compiling 225 source files to D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core
\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with
-source 1.5
[javac] D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core\src\org\icepdf\core\pobjects\
Stream.java:35: error: package com.sun.image.codec.jpeg does not exist
[javac] import com.sun.image.codec.jpeg.JPEGCodec;
[javac] ^
[javac] D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core\src\org\icepdf\core\pobjects\
Stream.java:36: error: package com.sun.image.codec.jpeg does not exist
[javac] import com.sun.image.codec.jpeg.JPEGImageDecoder;
[javac] ^
[javac] D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core\src\org\icepdf\core\pobjects\
Stream.java:605: error: cannot find symbol
[javac] JPEGImageDecoder imageDecoder = JPEGCodec.createJPEG
Decoder(bufferedInput);
[javac] ^
[javac] symbol: class JPEGImageDecoder
[javac] location: class Stream
[javac] D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core\src\org\icepdf\core\pobjects\
Stream.java:605: error: cannot find symbol
[javac] JPEGImageDecoder imageDecoder = JPEGCodec.createJPEG
Decoder(bufferedInput);
[javac] ^
[javac] symbol: variable JPEGCodec
[javac] location: class Stream
[javac] D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core\src\org\icepdf\core\pobjects\
Stream.java:670: error: package com.sun.image.codec.jpeg does not exist
[javac] com.sun.image.codec.jpeg.JPEGDecodeParam
.COLOR_ID_YCbCrA) {
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 5 errors
[javac] 1 warning

BUILD FAILED
D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\build.xml:83: The following error occurred whi
le executing this line:
D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\core\build.xml:58: The following error occurre
d while executing this line:
D:\ICEpdf\ICEpdf-4.2.2-src\icepdf\examples\etc\build-common.xml:95: Compile fail
ed; see the compiler error output for details.

Total time: 15 seconds


-----------------------------------

What do you suggest ?

Thank in advance.

Yves Joskin
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1150
Offline


Look like Oracle finally pulled com.sun.image.codec.jpeg.JPEGCodec . The only work around at this time would be to compile with JDK 1.6 or earlier.

I've create http://jira.icefaces.org/browse/PDF-332 to capture the issue.
[Email]
joskiny

Joined: 07/09/2011 12:12:27
Messages: 2
Offline


OK. I've been able to compile the viewer only, which is adequate today for my evaluation tasks. Looks promisong.
Thank for your time.
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1150
Offline


I'm taking closer look at this issue and I'm having some trouble reproducing it. I'm compiling just fine with 1.7.0_02 x86 on windows 7. If you're still out there, is this still an issue for your?
[Email]
drcrawfo

Joined: 22/02/2012 23:44:42
Messages: 1
Offline


I'm having problems building the jars as well. Running Windows 7 x86.

Code:
 C:\ICEpdf-4.3.2-src\icepdf>ant -version
 Apache Ant(TM) version 1.8.2 compiled on December 20 2010
 
 C:\ICEpdf-4.3.2-src\icepdf>java -version
 java version "1.7.0_02"
 Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
 Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
 
 C:\ICEpdf-4.3.2-src\icepdf>ant
 Buildfile: C:\ICEpdf-4.3.2-src\icepdf\build.xml
 
 build.all:
 
 update.product.info:
      [copy] Copying 1 file to C:\ICEpdf-4.3.2-src\icepdf\core\src\org\icepdf\cor
 e\application
 
 compile:
     [javac] C:\ICEpdf-4.3.2-src\icepdf\examples\etc\build-common.xml:77: warning
 : 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to
  false for repeatable builds
     [javac] Compiling 229 source files to C:\ICEpdf-4.3.2-src\icepdf\core\build\
 classes
     [javac] warning: [options] bootstrap class path not set in conjunction with
 -source 1.5
     [javac] C:\ICEpdf-4.3.2-src\icepdf\core\src\org\icepdf\core\pobjects\Stream.
 java:17: error: package com.sun.image.codec.jpeg does not exist
     [javac] import com.sun.image.codec.jpeg.JPEGCodec;
     [javac]                                ^
     [javac] C:\ICEpdf-4.3.2-src\icepdf\core\src\org\icepdf\core\pobjects\Stream.
 java:18: error: package com.sun.image.codec.jpeg does not exist
     [javac] import com.sun.image.codec.jpeg.JPEGImageDecoder;
     [javac]                                ^
     [javac] C:\ICEpdf-4.3.2-src\icepdf\core\src\org\icepdf\core\pobjects\Stream.
 java:604: error: cannot find symbol
     [javac]                 JPEGImageDecoder imageDecoder = JPEGCodec.createJPEG
 Decoder(bufferedInput);
     [javac]                 ^
     [javac]   symbol:   class JPEGImageDecoder
     [javac]   location: class Stream
     [javac] C:\ICEpdf-4.3.2-src\icepdf\core\src\org\icepdf\core\pobjects\Stream.
 java:604: error: cannot find symbol
     [javac]                 JPEGImageDecoder imageDecoder = JPEGCodec.createJPEG
 Decoder(bufferedInput);
     [javac]                                                 ^
     [javac]   symbol:   variable JPEGCodec
     [javac]   location: class Stream
     [javac] C:\ICEpdf-4.3.2-src\icepdf\core\src\org\icepdf\core\pobjects\Stream.
 java:668: error: package com.sun.image.codec.jpeg does not exist
     [javac]                             com.sun.image.codec.jpeg.JPEGDecodeParam
 .COLOR_ID_YCbCrA) {
     [javac]                                                     ^
     [javac] Note: Some input files use or override a deprecated API.
     [javac] Note: Recompile with -Xlint:deprecation for details.
     [javac] Note: Some input files use unchecked or unsafe operations.
     [javac] Note: Recompile with -Xlint:unchecked for details.
     [javac] 5 errors
     [javac] 1 warning
 
 BUILD FAILED
 C:\ICEpdf-4.3.2-src\icepdf\build.xml:65: The following error occurred while exec
 uting this line:
 C:\ICEpdf-4.3.2-src\icepdf\core\build.xml:73: The following error occurred while
  executing this line:
 C:\ICEpdf-4.3.2-src\icepdf\examples\etc\build-common.xml:77: Compile failed; see
  the compiler error output for details.
 
 Total time: 5 seconds
 
 C:\ICEpdf-4.3.2-src\icepdf>
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1150
Offline


Sorry for the delay on this one but I did have a chance to look at it this afternoon. I have a windows setup very similar to above with regards to the ant and java version and could reproduce the error reported.

So I dug around a bit to try and figure out the problem. The missing classes in question are in the %JAVA_HOME%\jre\lib\rt.jar. So the question is why isn't ant or javac not picking up on the needed classes.

I ran a >ant -verbose clean build.jars > log.txt

In the logs shows that %JAVA_HOME%\jre\lib\rt.jar is on the classpath but afterwards there is a statement.

[javac] Using modern compiler
dropping C:\java\java\jdk1.7.0_02\jre\jre\lib\rt.jar from path as it doesn't exist

So I can't tell if this is an ant issue or a JDK issue but if I make sure the path above exists then everything compiles as expected (notice the .\jre\jre\ path).

If you are running on a 1.7 system then you might want to updated ./examples/etc/build-common.xml 's <javac /> statement to look as follows:
Code:
 <javac destdir="${build.classes.dir}" sourcepath=""
                    includeAntRuntime="no" includeJavaRuntime="true"
                    debug="${compile.debug}" failonerror="@{failonerror}" >
[Email]
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team