xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helder Magalhães <helder.magalh...@gmail.com>
Subject Re: Batik still does not compile with Java 7
Date Sun, 11 Mar 2012 08:47:43 GMT
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:

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. :-)


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

View raw message