public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
* OT: Apache POI Native Library using GCJ
@ 2002-11-16 15:16 TJ Mather
  2002-11-16 17:56 ` Tom Tromey
  0 siblings, 1 reply; 5+ messages in thread
From: TJ Mather @ 2002-11-16 15:16 UTC (permalink / raw)
  To: rhug-rhats

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-11-23  1:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-16 15:16 OT: Apache POI Native Library using GCJ TJ Mather
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

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).