Try this (for JDK 1.4):
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200505.mbox/[EMAIL
PROTECTED]
If none of the committers objects, I'll simply remove the Class-Path
attribute in the manifest. It's of not much use anyway and should fix
the problem once and for all.
BTW, you can bypass the JUnit tests by running "ant package" instead of
just "ant". And be aware that the code you downloaded is still under
heavy development.
I'll have a look at the problems under JDK 1.5 tomorrow.
On 23.05.2005 21:44:31 m.baert wrote:
> Hello all,
>
> I'm afraid I need some help to build FOP.
> I just downloaded source code from cvs (2005-05-23 13:40).
>
> My first try, with JAVA_HOME pointing to my 1.5 jdk, I got
> errors in the compile-src target, related to the AbstractGraphics2D
> class (details below).
>
> So I redefined JAVA_HOME to use the 1.4 jdk, ran "ant clean", and the
> compile went fine.
>
> The JUnit tests went ok for fop-transcoder.jar and
> fop-transcoder-allinone.jar, but then failed:
>
> [echo] Running basic functionality tests for fop.jar
> [mkdir] Created dir: I:\CVS_Ext\xml-fop\build\test-reports\fop
> [junit] Testsuite: org.apache.fop.BasicDriverTestSuite
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec
>
> [junit] Testcase: testFO2PDFWithDOM(org.apache.fop.BasicDriverTestCase):
> Caused an ERROR
> [junit] org/apache/fop/apps/Fop
> [junit] java.lang.NoClassDefFoundError: org/apache/fop/apps/Fop
> [junit] at
> org.apache.fop.BasicDriverTestCase.testFO2PDFWithDOM(BasicDriverTestCase.java:73)
> [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [junit] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [junit] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> In the I:\CVS_Ext\xml-fop\test\java\org\apache\fop\BasicDriverTestCase.java
> file:
> 70: public void testFO2PDFWithDOM() throws Exception {
> 71: File foFile = new File(getBaseDir(), "test/xml/bugtests/block.fo");
> 72: ByteArrayOutputStream baout = new ByteArrayOutputStream();
> 73: Fop fop = new Fop(Fop.RENDER_PDF);
> 74: fop.setOutputStream(baout);
>
> The classpaths in build file seem ok ... what happens ?
>
> TIA for any help.
>
> --
> Best regards,
>
> Michelle
>
>
> ----
> Versions used:
> jdk 1.5: build 1.5.0-beta2-b51
> jdk 1.4: build 1.4.1_02-b06
> Ant 1.6.1
> Windows XP home
> ----
> Errors building with jdk 1.5:
>
> compile-src:
> [echo] Compiling the sources
> [mkdir] Created dir:
> I:\cvs_ext\xml-fop\build\classes\org\apache\fop\render\awt\viewer\resources
> [copy] Copying 10 files to
> I:\cvs_ext\xml-fop\build\classes\org\apache\fop\render\awt\viewer\resources
> [mkdir] Created dir:
> I:\cvs_ext\xml-fop\build\classes\org\apache\fop\render\awt\viewer\Images
> [copy] Copying 7 files to
> I:\cvs_ext\xml-fop\build\classes\org\apache\fop\render\awt\viewer\Images
> [javac] Compiling 610 source files to I:\cvs_ext\xml-fop\build\classes
> [javac] This version of java does not support the classic compiler;
> upgrading to modern
> [javac]
> I:\cvs_ext\xml-fop\src\java\org\apache\fop\image\FopImageConsumer.java:32:
> org.apache.fop.image.FopImageConsumer is not abstract and does not override
> abstract method
> setProperties(java.util.Hashtable<java.lang.String,java.lang.Object>) in
> java.awt.image.ImageConsumer
> [javac] public class FopImageConsumer implements ImageConsumer {
> [javac] ^
> [javac]
> I:\cvs_ext\xml-fop\src\java\org\apache\fop\render\ps\PSGraphics2D.java:79:
> org.apache.fop.render.ps.PSGraphics2D is not abstract and does not override
> abstract method addRenderingHints(java.util.Map<?,?>) in java.awt.Graphics2D
> [javac] public class PSGraphics2D extends AbstractGraphics2D {
> [javac] ^
> [javac]
> I:\cvs_ext\xml-fop\src\java\org\apache\fop\svg\PDFGraphics2D.java:96:
> org.apache.fop.svg.PDFGraphics2D is not abstract and does not override
> abstract method addRenderingHints(java.util.Map<?,?>) in java.awt.Graphics2D
> [javac] public class PDFGraphics2D extends AbstractGraphics2D {
> [javac] ^
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 3 errors
> ----
> Errors testing with jdk 1.4:
>
> [echo] Apache Ant version 1.6.1 compiled on February 12 2004
> [echo] Jimi Support NOT Present
> [echo] JAI Support NOT Present
> [echo] JCE Support PRESENT
> [echo] JUnit Support PRESENT
> [echo] Use GraphicsConfiguration adapter for JDK 1.4.
> [echo] ------------------- Fop 1.0dev [1999-2005] ----------------
> [echo] See build.properties and build-local.properties for additional build
> settings
> [echo] Preparing the build directories
> [echo] Resetting codegen directory
> [echo] Generating the java files from xml resources
> [echo] Compiling the sources
> [echo] Creating the jar file I:\CVS_Ext\xml-fop/build/fop.jar
> [echo] Creating the WAR file
> [echo] Creating the jar file I:\CVS_Ext\xml-fop/build/fop-transcoder.jar
> [echo] Running basic functionality tests for fop-transcoder.jar
> [echo] Running basic functionality tests for fop-transcoder-allinone.jar
> [echo] Running basic functionality tests for fop.jar
>
> [junit] Testsuite: org.apache.fop.BasicDriverTestSuite
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0,015 sec
>
> [junit] Testcase: testFO2PDFWithDOM(org.apache.fop.BasicDriverTestCase):
> Caused an ERROR
> [junit] org/apache/fop/apps/Fop
> [junit] java.lang.NoClassDefFoundError: org/apache/fop/apps/Fop
> [junit] at
> org.apache.fop.BasicDriverTestCase.testFO2PDFWithDOM(BasicDriverTestCase.java:73)
> [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [junit] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [junit] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]