From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8589 invoked by alias); 10 Jun 2009 11:06:29 -0000 Received: (qmail 8579 invoked by uid 22791); 10 Jun 2009 11:06:29 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_40,J_CHICKENPOX_53,J_CHICKENPOX_82,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Jun 2009 11:06:24 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5AB6Mbc018435; Wed, 10 Jun 2009 07:06:22 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5AB6K3Q006621; Wed, 10 Jun 2009 07:06:20 -0400 Received: from zebedee.pink (vpn-13-1.rdu.redhat.com [10.11.13.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5AB6Jof003505; Wed, 10 Jun 2009 07:06:19 -0400 Message-ID: <4A2F93AA.4070700@redhat.com> Date: Wed, 10 Jun 2009 11:06:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: David Michel CC: java@gcc.gnu.org Subject: Re: How to convert a jar into so file and use it ? References: <4A2F87D9.5040207@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00033.txt.bz2 David Michel wrote: > Thanks ! > > But I'm a bit puzzled by this > > ...-L. -lhello --classpath=.:hello/Hello.jar... > > Why does it need both the libhello.so and the Hello.jar file ? The Hello.jar file is used at compile time to check the names and types of all the classes you're going to use. It's not used at runtime. Andrew.