incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Herreman (Commented) (JIRA)" <>
Subject [jira] [Commented] (FLEX-48) Building the SDK with Java 7
Date Thu, 19 Apr 2012 04:03:05 GMT


Christophe Herreman commented on FLEX-48:

The upgrade involved quite a few steps. One of them was replacing the Batik build file with
a newer version, which makes the patch file a lot bigger. (Batik is built from the sources
with modifications). I've created separate patch files for all the files I needed to change.
This should make it easier to understand the different changes.

To summarize:

* Upgraded Batik from 1.6 to 1.7. Batik 1.7 can be compiled with Java 7 if the "sun-codecs.disabled"
property is set to true. Batik 1.6 does not have this option, hence the necessary upgrade.
The path to the unzipped Batik sources is also different between 1.6 and 1.7.

* Code was removed from Batik in the 1.7 release, which is available in xml-apis-ext.jar.
This dependency is now separately downloaded and added to the classpath where needed.

* Some API changes caused compilation errors. See ImageCacher and SpriteTranscoder.
> Building the SDK with Java 7
> ----------------------------
>                 Key: FLEX-48
>                 URL:
>             Project: Apache Flex
>          Issue Type: Improvement
>            Reporter: Christophe Herreman
>            Assignee: Bertrand Delacretaz
>         Attachments: java-7.patch
> I've changed the SDK a bit to be able to build it with Java 7. Everything seems to compile,
although that is no guarantee that things will actually work.
> The main problem is the Batik dependency. The version used by the trunk version is 1.6.
When building with Java 7, this results in some compiler errors for classes in the com.sun.*
packages. So I've updated the build scripts to use Batik version 1.7 (there is an option to
NOT use the Sun classes in the build file of that version) and resolved some more compilation
issues (missing dependency xml-apis-ext.jar, API changes in the dependencies).
> Attached is a patch with the changes. Please try this out if you have a moment and let
me know if this works for you. These changes are compatible with Java 6, so when applying
the patch you should still be able to build the SDK without changing your Java installation.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message