* GCJ on POI
@ 2008-08-05 6:40 HK Tan
2008-08-05 9:32 ` Andrew Haley
0 siblings, 1 reply; 3+ messages in thread
From: HK Tan @ 2008-08-05 6:40 UTC (permalink / raw)
To: gcc-help
Hi I have been trying to get gcj to compile for the for poi.
This are the steps that was trying to follow
gcj -shared -classpath ../jakarta-poi/lib/commons-logging-1.1.jar
-Lcommons-logging-1.1.jar.so
../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar -o
poi-3.2-alpha1-20080804.jar.so
gcj --classpath=../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar
-c HW.java
gcj --main=HW -Lpoi-3.2-alpha1-20080804.jar.so HW.o -o HW
But it bombs out on the step by
saying
org/apache/poi/dev/RecordGenerator.java: In class
`org.apache.poi.dev.RecordGenerator':
org/apache/poi/dev/RecordGenerator.java: In method
`org.apache.poi.dev.RecordGenerator.generateRecords(java.ljava.lang.String,java.lang.String,java.lang.String)':
org/apache/poi/dev/RecordGenerator.java:69: error: cannot find file
for class javax.xml.parsers.DocumentBuild
org/apache/poi/dev/RecordGenerator.java:69: error: cannot find file
for class javax.xml.parsers.DocumentBuild
org/apache/poi/dev/RecordGenerator.java:69: error: cannot find file
for class javax.xml.parsers.DocumentBuild
org/apache/poi/dev/RecordGenerator.java:79: error: cannot find file
for class javax.xml.parsers.DocumentBuild
org/apache/poi/dev/RecordGenerator.java:79: confused by earlier
errors, bailing out
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: GCJ on POI
2008-08-05 6:40 GCJ on POI HK Tan
@ 2008-08-05 9:32 ` Andrew Haley
2008-08-06 2:00 ` HK Tan
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Haley @ 2008-08-05 9:32 UTC (permalink / raw)
To: HK Tan; +Cc: gcc-help
HK Tan wrote:
> Hi I have been trying to get gcj to compile for the for poi.
> This are the steps that was trying to follow
> gcj -shared -classpath ../jakarta-poi/lib/commons-logging-1.1.jar
> -Lcommons-logging-1.1.jar.so
> ../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar -o
> poi-3.2-alpha1-20080804.jar.so
>
> gcj --classpath=../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar
> -c HW.java
>
> gcj --main=HW -Lpoi-3.2-alpha1-20080804.jar.so HW.o -o HW
>
> But it bombs out on the step by
> saying
>
I'd compile everything with -findirect-dispatch -Bsymbolic.
Andrew.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: GCJ on POI
2008-08-05 9:32 ` Andrew Haley
@ 2008-08-06 2:00 ` HK Tan
0 siblings, 0 replies; 3+ messages in thread
From: HK Tan @ 2008-08-06 2:00 UTC (permalink / raw)
To: Andrew Haley; +Cc: gcc-help
I found that the reason is due to the xml-apis.jar not included with gcj
gcj -shared -classpath xml-apis.jar -Lxml-apis.jar.so
poi-3.1-FINAL.jar -o poi-3.1-FINAL.jar.so -findirect-dispatch
-Bsymbolic
My gcj is 3.4.5
But now I have another problem..
org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java:
In class `org.apache.poi.hssf.record.formula.functions.XYNumericFunction':
org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java:
In method `org.apache.poi.hssf.record.formula.functions.XYNumericFunction.getValues(org.apache.poi.hssf.record.formula.eval.Eval,org.apache.poi.hssf.record.formula.eval.Eval)':
org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java:135:
error: verification error at PC=106
org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java:135:
error: invalid argument type
org/apache/poi/hssf/record/formula/functions/XYNumericFunction.java:135:
error: expected type 'org.apache.poi.hssf.record.formula.eval.Eval[]'
but stack contains 'java.lang.Object[]'
org/apache/poi/hssf/usermodel/HSSFPicture.java: In class
`org.apache.poi.hssf.usermodel.HSSFPicture':
org/apache/poi/hssf/usermodel/HSSFPicture.java: In method
`org.apache.poi.hssf.usermodel.HSSFPicture.getResolution(javax.imageio.ImageReader)':
org/apache/poi/hssf/usermodel/HSSFPicture.java:198: error: cannot find
file for class javax.imageio.ImageReader
org/apache/poi/hssf/usermodel/HSSFPicture.java:198: error: cannot find
file for class javax.imageio.metadata.IIOMetadata
org/apache/poi/hssf/usermodel/HSSFPicture.java:202: error: cannot find
file for class javax.imageio.ImageReader
org/apache/poi/hssf/usermodel/HSSFPicture.java:202: confused by
earlier errors, bailing out
On Tue, Aug 5, 2008 at 5:31 PM, Andrew Haley <aph@redhat.com> wrote:
> HK Tan wrote:
>> Hi I have been trying to get gcj to compile for the for poi.
>> This are the steps that was trying to follow
>> gcj -shared -classpath ../jakarta-poi/lib/commons-logging-1.1.jar
>> -Lcommons-logging-1.1.jar.so
>> ../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar -o
>> poi-3.2-alpha1-20080804.jar.so
>>
>> gcj --classpath=../jakarta-poi/build/dist/poi-3.2-alpha1-20080804.jar
>> -c HW.java
>>
>> gcj --main=HW -Lpoi-3.2-alpha1-20080804.jar.so HW.o -o HW
>>
>> But it bombs out on the step by
>> saying
>>
>
> I'd compile everything with -findirect-dispatch -Bsymbolic.
>
> Andrew.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-06 2:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-05 6:40 GCJ on POI HK Tan
2008-08-05 9:32 ` Andrew Haley
2008-08-06 2:00 ` HK Tan
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).