Re: Building XML Calabash on Windows?

I think the problem's the com.sun classes for images - these have been
discouraged for a while (see http://markmail.org/message/s4j7pbhie5wvf5b2)
and I think they're now more aggressively discouraged.

I haven't tried this myself yet, but it looks like calling javac with

    javac -XDignore.symbol.file

will fix it (via
http://stackoverflow.com/questions/4065401/using-internal-sun-classes-with-javac/4070685#4070685
).

The longer term solution is to switch to javax.imageio for image
manipulation.

I'm not sure why this isn't an issue on OS X - perhaps because the OS X
Java is packaged by Apple rather than by Sun.

Inigo

On Fri, Mar 22, 2013 at 1:32 PM, Norman Walsh <ndw@nwalsh.com> wrote:

> Norman Walsh <ndw@nwalsh.com> writes:
> > Has anyone built XML Calabash on Windows? Did you have to change
> build.xml?
>
> To be more explicit. On my Mac:
>
> $ java -version
> java version "1.7.0_11"
> Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
> Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
> $ ant clean; ant compile
>
> works just fine.
>
> On my Windows XP VM:
>
> Z:\Data\github\calabash>java -version
> java version "1.7.0_17"
> Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
> Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
> Z:\Data\github\calabash>ant clean
> ...
> Z:\Data\github\calabash>ant compile
>
> compile-MetadataException:
>     [javac] Compiling 1 source file to
> Z:\Data\github\calabash\out\production\Ca
> labash
>     [javac]
> Z:\Data\github\calabash\src\com\xmlcalabash\extensions\MetadataExtra
> ctor.java:76: error: cannot access JPEGDecodeParam
>     [javac]             Metadata metadata =
> JpegMetadataReader.readMetadata(stre
> am);
>     [javac]                                                   ^
>     [javac]   class file for com.sun.image.codec.jpeg.JPEGDecodeParam not
> found
>     [javac] Note: Some input files use unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 1 error
>
> I arranged to get ant to print the classpath in compile, and it looks
> correct
> and analogous to the Mac version:
>
>      [echo] Classpath:
> Z:\Data\github\calabash\lib\Alternate_XfoJavaCtl.jar;Z:\D
>
> ata\github\calabash\lib\ant.jar;Z:\Data\github\calabash\lib\avalon-framework-4.2
>
> .0.jar;Z:\Data\github\calabash\lib\batik-all-1.7.jar;Z:\Data\github\calabash\lib
>
> \command.jar;Z:\Data\github\calabash\lib\commons-codec-1.6.jar;Z:\Data\github\ca
>
> labash\lib\commons-httpclient-3.1.jar;Z:\Data\github\calabash\lib\commons-io-1.3
>
> .1.jar;Z:\Data\github\calabash\lib\commons-logging-1.1.1.jar;Z:\Data\github\cala
>
> bash\lib\deltawing.jar;Z:\Data\github\calabash\lib\deltaxml.jar;Z:\Data\github\c
>
> alabash\lib\fop-hyph.jar;Z:\Data\github\calabash\lib\fop.jar;Z:\Data\github\cala
>
> bash\lib\htmlparser-1.3.1.jar;Z:\Data\github\calabash\lib\isorelax.jar;Z:\Data\g
>
> ithub\calabash\lib\jing.jar;Z:\Data\github\calabash\lib\junit-4.8.1.jar;Z:\Data\
>
> github\calabash\lib\mail.jar;Z:\Data\github\calabash\lib\marklogic-xcc-6.0.2.jar
>
> ;Z:\Data\github\calabash\lib\metadata-extractor-2.3.1.jar;Z:\Data\github\calabas
>
> h\lib\msv.jar;Z:\Data\github\calabash\lib\relaxngDatatype.jar;Z:\Data\github\cal
>
> abash\lib\saxon9ee.jar;Z:\Data\github\calabash\lib\saxon9he.jar;Z:\Data\github\c
>
> alabash\lib\serializer-2.7.0.jar;Z:\Data\github\calabash\lib\tagsoup-1.2.jar;Z:\
>
> Data\github\calabash\lib\xalan-2.7.0.jar;Z:\Data\github\calabash\lib\xep.jar;Z:\
>
> Data\github\calabash\lib\xercesImpl-2.7.1.jar;Z:\Data\github\calabash\lib\xml-ap
>
> is-1.3.04.jar;Z:\Data\github\calabash\lib\xml-apis-ext-1.3.04.jar;Z:\Data\github
>
> \calabash\lib\xmlgraphics-commons-1.5.jar;Z:\Data\github\calabash\lib\xmlresolve
>
> r.jar;Z:\Data\github\calabash\lib\xmlunit-1.3.jar;Z:\Data\github\calabash\lib\xs
>
> dlib.jar;Z:\Data\github\calabash\lib\xt.jar;Z:\Data\github\calabash\lib\xxx_saxo
> n.jar
>
> WTF?
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh
> Lead Engineer
> MarkLogic Corporation
> Phone: +1 512 761 6676
> www.marklogic.com
>

Received on Friday, 22 March 2013 14:14:38 UTC