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]
Other format: [Raw text]

Re: Help using -I


>-I only modifies the classpath, it doesn't tell the compiler what to
>include in the link.
>
>I believe your link line should look like this:
>
>	gcj --main=bob.Main bob/Main.java bob.jar -o $@ $<

P.S. You don't need javac either. You can use gcj -C in your Makefile.
Much faster.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/





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