From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22032 invoked by alias); 10 Jun 2009 08:40:34 -0000 Received: (qmail 22023 invoked by uid 22791); 10 Jun 2009 08:40:34 -0000 X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_50,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 08:40:27 +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 n5A8eQbO017621; Wed, 10 Jun 2009 04:40:26 -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 n5A8eOZd009396; Wed, 10 Jun 2009 04:40:25 -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 n5A8eNbT015005; Wed, 10 Jun 2009 04:40:24 -0400 Message-ID: <4A2F7177.4050609@redhat.com> Date: Wed, 10 Jun 2009 08:40:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: Vaijayanthi Mala Suresh CC: java@gcc.gnu.org Subject: Re: Compiling java files which has other Imports References: <6f1633170906092142q9f7aa48lf43a09b391f2fd4d@mail.gmail.com> In-Reply-To: <6f1633170906092142q9f7aa48lf43a09b391f2fd4d@mail.gmail.com> 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/msg00029.txt.bz2 Vaijayanthi Mala Suresh wrote: > I have imported another java file from a package (jar file). This > package is converted into a static ibrary .a > If I compile the HelloWorld.java which has the import com.test.Hello. it fails. > > import com.test.Hello; > > class HelloWorld > { > HelloWorld() > { > Hello tst = new Hello(); > tst.printMessage(); > } > } > > -gcj -c HelloWorld.java > > -gcj -c HelloWorld.java -L. -lNatHello.a > > Can anyone please help me Yes, but we need a little more information. A full test case, please. Andrew.