Hi everyone,

> I just tried to compile batik svn from today with Oracle JDK 7u3 (on Windows, 
> under cygwin) and it failed with multiple errors of the form
>
> error: package com.sun.image.codec.jpeg does not exist
>
> It works with Sun JDK 1.6.0_20.

Right. A quick research showed that it appears to be a bug (or
feature) in JDK 7: what happens is that both can be found (the source
files in "src.zip" and the corresponding class files in "rt.jar") but
something is blocking their access. Without further research, I'm
guessing that they are still present in case some compatibility mode
is forced in JDK and access to the classes is then allowed.

I didn't realize this first because this is configurable, and my local
copy has that setting for a while: just create a file named
"build.properties" in the root Batik directory (next to "build.xml")
and add the following line:
sun-codecs.disabled=true

I'll try to check if the heuristics performed (by Ant) in "build.xml"
can be improved (if someone has an idea, please share!). In the
meantime the configuration described can be used as a workaround. :-)


Cheers,
 Helder

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to