From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28244 invoked by alias); 16 Nov 2002 23:16:43 -0000 Mailing-List: contact rhug-rhats-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: rhug-rhats-owner@sources.redhat.com Received: (qmail 28237 invoked from network); 16 Nov 2002 23:16:42 -0000 Received: from unknown (HELO plain.rackshack.net) (207.44.162.51) by sources.redhat.com with SMTP; 16 Nov 2002 23:16:42 -0000 Received: from localhost (tjmather@localhost) by plain.rackshack.net (8.11.6/8.11.6) with ESMTP id gAGNIpg24457 for ; Sat, 16 Nov 2002 18:18:51 -0500 Date: Sat, 16 Nov 2002 15:16:00 -0000 From: TJ Mather X-X-Sender: tjmather@plain.rackshack.net To: rhug-rhats@sources.redhat.com Subject: OT: Apache POI Native Library using GCJ Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-11/txt/msg00001.txt.bz2 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