From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17351 invoked by alias); 10 Jun 2009 04:42:43 -0000 Received: (qmail 17342 invoked by uid 22791); 10 Jun 2009 04:42:42 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,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 04:42:38 +0000 Received: by qyk32 with SMTP id 32so786121qyk.0 for ; Tue, 09 Jun 2009 21:42:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.100.16 with SMTP id w16mr875965vcn.110.1244608955600; Tue, 09 Jun 2009 21:42:35 -0700 (PDT) Date: Wed, 10 Jun 2009 04:42:00 -0000 Message-ID: <6f1633170906092142q9f7aa48lf43a09b391f2fd4d@mail.gmail.com> Subject: Compiling java files which has other Imports From: Vaijayanthi Mala Suresh To: java@gcc.gnu.org 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/msg00028.txt.bz2 Hi All, 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 Thanks Mala