The build problems are with FOP or Batik? I built FOP with Java 7 and ran one of the SVG example with the result and had no problems.
lbernardo@devbox:~/workspace/apachefop$ javap -verbose -classpath build/fop.jar org.apache.fop.cli.Main | head Compiled from "Main.java" public final class org.apache.fop.cli.Main extends java.lang.Object SourceFile: "Main.java" InnerClass: #29; //class org/apache/fop/cli/Main$1 minor version: 0 major version: 51 Constant pool: const #1 = Method #53.#154; // java/lang/Object."<init>":()V const #2 = String #155; // fop.home Major version 51 means it was compiled with Java 7. On Wed, Dec 21, 2011 at 7:21 AM, Michiel Bronswijk <michiel.bronsw...@oce.com> wrote: > Hi all, > > I am trying to build FOP from the sources and I run into problems when using > Java 7. > FOP uses Batik for several graphic formats. Batik however uses obsolete sun > graphic classes. > These classes are not available anymore in Java 7 and result in build > failures. > For example: > > batik\sources\org\apache\batik\ext\awt\image\codec\jpeg\JPEGImageWriter.java:30: > error: package com.sun.image.codec.jpeg does not exist > > Are there plans for a release to get Fop (including Batik) Java 7 compliant or > to have a release not dependent on Batik. > > Regards, > > Michiel Bronswijk. >