From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27418 invoked by alias); 10 Jun 2009 11:53:29 -0000 Received: (qmail 27406 invoked by uid 22791); 10 Jun 2009 11:53:29 -0000 X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_05,J_CHICKENPOX_53,J_CHICKENPOX_74,J_CHICKENPOX_82,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-qy0-f194.google.com (HELO mail-qy0-f194.google.com) (209.85.221.194) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Jun 2009 11:53:23 +0000 Received: by qyk32 with SMTP id 32so963292qyk.0 for ; Wed, 10 Jun 2009 04:53:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.44.204 with SMTP id b12mr909048vcf.101.1244634801243; Wed, 10 Jun 2009 04:53:21 -0700 (PDT) In-Reply-To: <4A2F93AA.4070700@redhat.com> References: <4A2F87D9.5040207@redhat.com> <4A2F93AA.4070700@redhat.com> Date: Wed, 10 Jun 2009 11:53:00 -0000 Message-ID: <6f1633170906100453g4a993316ufac79b6ff4998404@mail.gmail.com> Subject: Re: How to convert a jar into so file and use it ? From: Vaijayanthi Mala Suresh To: Andrew Haley Cc: David Michel , java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00034.txt.bz2 Hi All, I also have the same requirement. Taking from David's example, when i tried to do the following gcj -O0 -g0 --classpath=3D./:extern/mytest.jar -c TestApp.java -o TestApp= .o It gives me the following error TestApp.java:56: internal compiler error: in make_class_data, at java/class.c:1600 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Can you please let me know what is the reason for this error. What am I doing wrong over here? Thanks Mala On Wed, Jun 10, 2009 at 4:36 PM, Andrew Haley wrote: > David Michel wrote: >> Thanks ! >> >> But I'm a bit puzzled by this >> >> ...-L. -lhello --classpath=3D.:hello/Hello.jar... >> >> =A0Why 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. =A0It's not used at runtime. > > Andrew. >