From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29185 invoked by alias); 11 Apr 2002 03:17:21 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 29171 invoked from network); 11 Apr 2002 03:17:19 -0000 Received: from unknown (HELO mailhub1.otago.ac.nz) (139.80.64.218) by sources.redhat.com with SMTP; 11 Apr 2002 03:17:19 -0000 Received: (from root@localhost) by mailhub1.otago.ac.nz (8.10.1/8.10.1) id g3B3HIB14632; Thu, 11 Apr 2002 15:17:18 +1200 Received: from waitaki.otago.ac.nz (waitaki.otago.ac.nz [139.80.75.140]) by mailhub1.otago.ac.nz (8.10.1/8.10.1) with ESMTP id g3B3HHp14576; Thu, 11 Apr 2002 15:17:17 +1200 Received: from waitaki.otago.ac.nz (IDENT:bryce@reason.otago.ac.nz [139.80.119.17]) by waitaki.otago.ac.nz (8.11.6/8.11.6) with ESMTP id g3B3HJu27023; Thu, 11 Apr 2002 15:17:19 +1200 Message-ID: <3CB4FFE1.7030600@waitaki.otago.ac.nz> Date: Thu, 11 Apr 2002 07:44:00 -0000 From: Bryce McKinlay User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221 X-Accept-Language: en-us MIME-Version: 1.0 To: Nic Ferrier CC: java@gcc.gnu.org Subject: Re: compiling to native: simple q References: <87zo0adzmh.fsf@pooh-sticks-bridge.tapsellferrier.co.uk> X-scanner: scanned by Inflex 1.0.9 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00193.txt.bz2 Nic Ferrier wrote: >I'm getting a whole bunch of errors that are to do with the >dependancies of the class files. > >I have the CLASSPATH variable set to the jar files that are the >dependancies for the paperclips classes, do I need to include them as >compilation targets? (when I do that gcj segfaults). > >Should I be unpacking the jar files as classes and having gcj compile >the whole thing? > >Should I be converting all the jar files into native libs and solving >the depends that way? > Yes. You can't have native code that depends on bytecode (except for weak dependencies, ie reflection) You could compile the .jar files into shared libraries: gcj -shared foo.jar -o libfoo.so And then link your application against them: gcj my/classes/*.java --main=my.classes.main -o myapp libfoo.so regards Bryce.