public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
From: TJ Mather <tjmather@maxmind.com>
To: rhug-rhats@sources.redhat.com
Subject: OT: Apache POI Native Library using GCJ
Date: Sat, 16 Nov 2002 15:16:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.44.0211161814590.18997-100000@plain.rackshack.net> (raw)

This is marked as offtopic, since it doesn't involve the RHUG project,
however I thought it may interest anyone who wanted to compile Apache
POI with GCJ...

I was able to get Apache POI to compile down to a shared library by
compiling *.java -> *.class using Ant with Sun JDK, then running
gcj -shared -o poi.so `cat classlist.txt` where the classlist contained 
the core HSSF files (not the ones that used Swing, etc)[1].  I had to 
compile FormulaParser.java, POIFSViewEngine.java, and HexRead.java to 
*.class using GCJ, because I got a "bad pc in exception_table" if I tried 
to compile the JDK *.class to *.so using GCJ.  Also note that *.java -> 
*.class using GCJ doesn't work for some *.java files.

For more details on to build and use the Apache POI GCJ shared library
see http://tjmather.com/poifilter/

-TJ

             reply	other threads:[~2002-11-16 23:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-16 15:16 TJ Mather [this message]
2002-11-16 17:56 ` Tom Tromey
2002-11-17 13:28   ` TJ Mather
2002-11-17 13:30     ` Tom Tromey
2002-11-22 17:27   ` TJ Mather

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=Pine.LNX.4.44.0211161814590.18997-100000@plain.rackshack.net \
    --to=tjmather@maxmind.com \
    --cc=rhug-rhats@sources.redhat.com \
    /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).