Unrecognized option `-fclasspath=...'

Tom Tromey tromey@cygnus.com
Wed Sep 6 15:51:00 GMT 2000


>>>>> "Oskar" == Oskar Liljeblad <osk@hem.passagen.se> writes:

Oskar> $ gcj -classpath /home/usel/Base/share/libgcj.zip --main=test -o test test.java
Oskar> cc1: Unrecognized option `-fclasspath=/home/usel/Base/share/libgcj.zip'
Oskar> cc1: Unrecognized option `-fclasspath=/home/usel/Base/share/libgcj.zip'

Use `--classpath', not `-classpath'.  That works for me.

When I try your example I get an error about `-classpath...', not
`-fclasspath...'.  That could be due to an obscure local change of
mine, though.

However, this does seem broken, because in theory `gcj -C' should be a
drop-in replacement for `javac'.  Could you submit a PR for this?

Tom


More information about the Java mailing list