From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32341 invoked by alias); 4 May 2011 08:48:23 -0000 Received: (qmail 32320 invoked by uid 22791); 4 May 2011 08:48:20 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_GC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 May 2011 08:48:01 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p448m05M023977 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 May 2011 04:48:00 -0400 Received: from zebedee.pink (ovpn-113-125.phx2.redhat.com [10.3.113.125]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p448lxNb004799; Wed, 4 May 2011 04:48:00 -0400 Message-ID: <4DC112BE.3030609@redhat.com> Date: Wed, 04 May 2011 08:48:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 MIME-Version: 1.0 To: "java@gcc.gnu.org" CC: gcc-help@gcc.gnu.org Subject: Re: Compiling fop to native windows References: <194BC8DA86084946B01DD44BC622D7BA@alpin.local> In-Reply-To: <194BC8DA86084946B01DD44BC622D7BA@alpin.local> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg00000.txt.bz2 On 04/05/11 09:35, Dominik Psenner wrote: > Greetings, > > I'm trying to compile the java FOP (formatting objects processor) to run > natively on windows. One may ask: WHY? The reason is that we have some > computers on which we are not allowed to install a JRE but we would anyway > love to use FOP for rendering docbook documents to PDF. Unfortunately I ran > into some trouble compiling it, which is why I'm searching for help on this > list. > > This is where it fails: > > --- QUOTE --- > org/apache/fop/accessibility/AccessibilityPreprocessor.java: In class > 'org.apache.fop.accessibility.AccessibilityPreprocessor': > org/apache/fop/accessibility/AccessibilityPreprocessor.java: In constructor > '(javax.xml.transform.sax.TransformerHandler,javax.xml.transform.Transformer > ,org.apache.fop.apps.FOUserAgent,org.xml.sax.helpers.DefaultHandler)': > In file included from > org/apache/fop/accessibility/AccessibilityEventProducer.java:0:0, > from > org/apache/fop/accessibility/AccessibilityEventProducer.java:42, > from > org/apache/fop/accessibility/AccessibilityEventProducer.java:43, > from org/apache/fop/accessibility/Accessibility.java:44, > from org/apache/fop/Version.java:37, > from org/apache/fop/ResourceEventProducer.java:1, > from org/apache/fop/ResourceEventProducer.java:52, > from org/apache/fop/ResourceEventProducer.java:58, > from :3: > org/apache/fop/accessibility/AccessibilityPreprocessor.java:50:0: error: > cannot find file for class > org.apache.commons.io.output.ByteArrayOutputStream > org/apache/fop/accessibility/AccessibilityPreprocessor.java:50: confused by > earlier errors, bailing out > make: *** [fop.exe] Error 1 > --- QUOTE --- > > What I've done so far is: > > * use maven to fetch all required dependencies > * use cygwin for: > * make (3.81) > * gcj-4 (4.5.0) > * use make as frontend to gcj > > I pasted the Makefile here: http://pastebin.com/yEJGzEbA > And the pom.xml here: http://pastebin.com/LRbJMVMd > > What I do not get is, that there's definitely the .class file for > ByteArrayOutputStream in commons-io-1.3.1.jar. Can someone explain me what I > am doing wrong here? I don't understand how this is supposed to work. You have to compile all the dependencies and link them together; all you seem to be doing is putting the dependencies in the CLASSPATH. I'd first try compiling every jar with -findirect-dispatch and then linking them all. Andrew.