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: how to compile multi classed?


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



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