From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21732 invoked by alias); 28 Jul 2005 15:35:49 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21709 invoked by uid 22791); 28 Jul 2005 15:35:44 -0000 Received: from web33309.mail.mud.yahoo.com (HELO web33309.mail.mud.yahoo.com) (68.142.206.124) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Thu, 28 Jul 2005 15:35:44 +0000 Received: (qmail 56008 invoked by uid 60001); 28 Jul 2005 15:35:42 -0000 Message-ID: <20050728153542.56006.qmail@web33309.mail.mud.yahoo.com> Received: from [68.110.169.125] by web33309.mail.mud.yahoo.com via HTTP; Thu, 28 Jul 2005 08:35:42 PDT Date: Thu, 28 Jul 2005 15:35:00 -0000 From: Eric Subject: Using gcj to compile java To: gcc-help@gcc.gnu.org In-Reply-To: <20050727162335.4673@prufrock> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-07/txt/msg00313.txt.bz2 Hello, I'm trying to use gcj to compile a bunch of .java files, but it doesn't seem to be able to work out the class dependencies. If I have all my .java files in one directory, and if I do "javac *.java", then java can compile them. But if I do "gcj *.java", then gcj gives me a bunch of errors saying that it can't find the classes, even though the classes are there in the directory. How can I tell gcj that the classes are there? Thanks, Eric --- Peter Graves wrote: > On Wed, 27 Jul 2005 at 14:33:25 -0700, Eric wrote: > > To make a long story short, it seems that there is > > a circular dependency thing going on. > > > > "gcj Autoload.class" asks for Function.class > > "gcj Function.class" asks for Functional.class > > "gcj Functional.class" asks for LispObject.class > > "gcj LispObject.class" asks for Lisp.class > > "gcj Lisp.class" asks for Autoload.class > > > > But Autoload.class is where I first started. > > > > What am I doing wrong? > > > > Eric > > How about: > > gcj ~/src/org/armedbear/lisp/*.class > > If that doesn't work, you might want to ask the gcj > folks; I'm by no > means a gcj expert. > > -Peter