Date: Thu, 30 Jan 2003 10:36:50 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Brian Henning <b1henning@hotmail.com> Cc: freebsd <freebsd-questions@FreeBSD.ORG> Subject: Re: java compiler Message-ID: <20030130183650.GC5952@rot13.obsecurity.org> In-Reply-To: <OE20E6Co56p94HSw27x00000d52@hotmail.com> References: <OE20E6Co56p94HSw27x00000d52@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--VywGB/WGlW4DM4P8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 30, 2003 at 11:27:29AM -0600, Brian Henning wrote: > I have heard that the new gcc compilers have the ability to compile java > source code into a binary. >=20 > I was told all I need to do is add the flag -x java and it will work. >=20 > For example: gcc -x java HelloWorld.java >=20 > when i tried this i get the following error: >=20 > gcc: Warning: `-x java' after last input file has no effect >=20 > Where could i find some docs to get this to work? Install a gcc port and read its documentation. > PS. i have also heard that there is a compiler gjc that can do the same > thing >=20 > is that a better way to solve my problem? It's probably equivalent, but the compiler in the base system doesn't have java support, so you need to install a gcc port to get the full compiler suite. Kris --VywGB/WGlW4DM4P8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+OXDBWry0BWjoQKURAjCSAKC+YMu5j4qctMlDZCotNpZUCncurQCfR/8d e8eMzfQJu2b23zesDotP1vs= =MCSB -----END PGP SIGNATURE----- --VywGB/WGlW4DM4P8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030130183650.GC5952>