This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: how to compile multi classed?
- To: <java at gcc dot gnu dot org>, "Niklas Fondberg" <niklas dot fondberg at i3micro dot com>
- Subject: Re: how to compile multi classed?
- From: "Anthony Green" <green at redhat dot com>
- Date: Tue, 4 Sep 2001 12:32:24 -0700
- References: <999630407.3b952647728ac@greyhound.i3micro.se>
Niklas wrote:
> I have three source *.java files:
> 2 are classes that are called from the first class (containing main)
> How are one to compile this?
gcj operates much like a C compiler. Here's one way of doing it...
gcj -c Second.java -o Second.o
gcj -c Third.java -o Third.o
gcj --main=First First.java -o First Second.o Third.o
AG