public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: "java@gcc.gnu.org" <java@gcc.gnu.org>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Compiling fop to native windows
Date: Wed, 04 May 2011 08:48:00 -0000	[thread overview]
Message-ID: <4DC112BE.3030609@redhat.com> (raw)
In-Reply-To: <194BC8DA86084946B01DD44BC622D7BA@alpin.local>

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 <built-in>: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.

           reply	other threads:[~2011-05-04  8:48 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <194BC8DA86084946B01DD44BC622D7BA@alpin.local>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DC112BE.3030609@redhat.com \
    --to=aph@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).