how to compile multi classed?

Anthony Green green@redhat.com
Tue Sep 4 12:28:00 GMT 2001


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /