You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Michael Glavassevich <mr...@ca.ibm.com> on 2010/02/04 03:43:37 UTC

Re: compiling from source error!

Hi,

This exception is coming from the Apache Stylebook, a tool which Xerces
uses to build its documentation. It has dependencies on some Sun JDK
internal classes so will not work on some platforms (possibly even on newer
Sun JDKs which have changed those classes in incompatible ways or have even
removed them). Stylebook hasn't been maintained for a long time so it's
unlikely the portability issues will ever get fixed. You didn't mention
which JDK you tried this with but would suggest trying a different one if
you want to build the docs yourself.

Thanks.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Ishan Jayawardena <ud...@gmail.com> wrote on 02/03/2010 09:11:27 AM:

> Hi,
> I tried to compile the source after checking out the source from the
> repository.
> First I set JAVA_HOME and issued
>
> ./build.sh all
>
> but build failed giving out following message.
>
> ----------------------------------------
> Applying XSL sheet "sbk:/style/stylesheets/context2label.xsl"
>      [java] Exception in thread "main"
> java.lang.IncompatibleClassChangeError: Found class
> com.sun.image.codec.jpeg.JPEGEncodeParam, but interface was expected
>      [java]    at org.apache.stylebook.printers.ImagePrinter.print
> (Unknown Source)
>      [java]    at org.apache.stylebook.BasicEntry.create(Unknown Source)
>      [java]    at org.apache.stylebook.Project.create(Unknown Source)
>      [java]    at org.apache.stylebook.StyleBook.main(Unknown Source)
>
> BUILD FAILED
> /home/ishan/devel/xerces/trunk/build.xml:426: Java returned: 1
> -----------------------------------------
>
> does anyone have any idea?
> Thanks in advance
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-dev-help@xerces.apache.org