This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem linking java program
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael Koch wrote:
>
> use this:
>
> gcj --main=Test Test.java -o test
Just as an aside, naming your executable as "test" can
cause unintended behaviour depending on your shell,
how you invoke the program and your PATH. You will
not notice it if you invoke it as "./test", but if
your PATH contains "." and you just say "test"...
Ranjit.
- --
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDdCkrYb1hx2wRS48RAiLEAJ4qz9bcXNOVz8etoOa34uaxgV7F5wCgiMxf
iVRx6tPCrXoXwRkTPrTCtY0=
=wZkg
-----END PGP SIGNATURE-----