[prev in list] [next in list] [prev in thread] [next in thread] 

List:       poi-dev
Subject:    Re: GCJ Native Library Success
From:       Martin Aliger <martin_aliger () email ! cz>
Date:       2002-11-17 14:06:04
[Download RAW message or body]

Hi,

Excelent work! I was trying the same but stopped by some bug in gcj runtime for now. \
I tried to compile directly from .java into native code. It works now but resulting \
code does not work yet.

That patch I made before was meant more as suggestion to recode to mine purist style, \
but gcj seems to have problems with compiled .class files containing these ugly \
interfaces. There is no such problem with .java so when gcj team fix that this should \
not be needed. Since that it is good workaround (I still think it is good idea anyway \
;-))

Now I'm going to test your lib and continue to compile directly from sources (should \
result in more efficient code and should be more maintainable)

Finally, do you plan to try compile win32 POI library? I'd like to see one...

Regards,
Martin Aliger


> --- Původní zpráva ---
> Od: TJ Mather <tjmather@maxmind.com>
> Datum: 16.11.2002 23:21:23
> 
> Hi,
> 
> 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.
> 
> I was able to get the C++ native shared library to work with one of the 
> test examples using an adaption of Martin's patch.  For more details on
> how to recreate the POI example in C++ see:
> http://tjmather.com/poifilter/
> 
> The patch needed for POI to compile and run under GCJ is at
> http://tjmather.com/poifilter/gcjpoi.patch
> 
> This is basically Martin's patch plus some fixes for the hpsf/*.java
> files required for ./build.sh compile to run, and (Object) typecast
> in poifs/dev/POIFSViewEngine.java required for GCJ to compile the
> shared library.
> 
> -TJ
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:poi-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:poi-dev-help@jakarta.apache.org>
> 
> 

______________________________________________________________________________
Email.cz -----> Vaše emailová schránka zdarma.
http://www.Email.cz <------------Pošta zdarma!




--
To unsubscribe, e-mail:   <mailto:poi-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:poi-dev-help@jakarta.apache.org>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic