* 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
* Re: OT: Apache POI Native Library using GCJ
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-22 17:27 ` TJ Mather
0 siblings, 2 replies; 5+ messages in thread
From: Tom Tromey @ 2002-11-16 17:56 UTC (permalink / raw)
To: TJ Mather; +Cc: rhug-rhats
>>>>> "TJ" == TJ Mather <tjmather@maxmind.com> writes:
TJ> I had to compile FormulaParser.java, POIFSViewEngine.java, and
TJ> HexRead.java to *.class using GCJ, because I got a "bad pc in
TJ> exception_table" if I tried to compile the JDK *.class to *.so
TJ> using GCJ.
I believe Andrew fixed this bug in the trunk gcj.
TJ> Also note that *.java -> *.class using GCJ doesn't work for some
TJ> *.java files.
Please submit gcj PRs for this. Especially good would be a small test
case that shows the problem.
Tom
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: Apache POI Native Library using GCJ
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
1 sibling, 1 reply; 5+ messages in thread
From: TJ Mather @ 2002-11-17 13:28 UTC (permalink / raw)
To: rhug-rhats
On 16 Nov 2002, Tom Tromey wrote:
> Please submit gcj PRs for this. Especially good would be a small test
> case that shows the problem.
I'm planning to do this, I first wanted to test them against the latest
GCJ CVS to make sure they haven't already been fixed.
Regards,
TJ
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: Apache POI Native Library using GCJ
2002-11-17 13:28 ` TJ Mather
@ 2002-11-17 13:30 ` Tom Tromey
0 siblings, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2002-11-17 13:30 UTC (permalink / raw)
To: TJ Mather; +Cc: rhug-rhats
>>>>> "TJ" == TJ Mather <tjmather@maxmind.com> writes:
TJ> I'm planning to do this, I first wanted to test them against the latest
TJ> GCJ CVS to make sure they haven't already been fixed.
Even better! Thanks.
Tom
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: OT: Apache POI Native Library using GCJ
2002-11-16 17:56 ` Tom Tromey
2002-11-17 13:28 ` TJ Mather
@ 2002-11-22 17:27 ` TJ Mather
1 sibling, 0 replies; 5+ messages in thread
From: TJ Mather @ 2002-11-22 17:27 UTC (permalink / raw)
To: rhug-rhats
On 16 Nov 2002, Tom Tromey wrote:
> TJ> I had to compile FormulaParser.java, POIFSViewEngine.java, and
> TJ> HexRead.java to *.class using GCJ, because I got a "bad pc in
> TJ> exception_table" if I tried to compile the JDK *.class to *.so
> TJ> using GCJ.
>
> I believe Andrew fixed this bug in the trunk gcj.
Yep, the bad pc in exception_table seems to be fixed in GCJ CVS.
> TJ> Also note that *.java -> *.class using GCJ doesn't work for some
> TJ> *.java files.
>
> Please submit gcj PRs for this. Especially good would be a small test
> case that shows the problem.
There are two issues with GCJ 3.2, #8457 (submitted by Martin Aliger),
and the "bad pc in exception_table" which has since been fixed. I tried
running against GCJ 3.3 20021120, and #8457 was still a problem, and there
seems to be a problem with CNI Invocation of Java code from C++ see PR
#8685. So the example on the web site seems to be broken on 3.3 20021120:
http://gcc.gnu.org/onlinedocs/gcj/Invocation.html
-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).