This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Getting started with GCJ




On Wed, 7 Nov 2001, Michael J McGonagle wrote:
> So what it comes down to, is how do you compile two classes that are
> mutually dependant on each other?

Either make sure the source directory for each class is in your CLASSPATH,
or compile them all at once, e.g.

gcj -C class1.java class2.java ...

> Also, does anyone know of a simple tool that can handle the compilation
> of a complex project? Do most people use Makefile's?

Makefiles are still widely used, but increasingly often they are generated
by automake etc. rather than written by hand.  The Ant tool also seems
to be popular for this.

Certainly libgcj is a complex project, and uses automake/autoconf/libtool
to manage building itself.  Also look at http://sources.redhat.com/rhug/
for other examples with gcj.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]