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@xxxxxxxxxx> 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. >