From owner-freebsd-questions Thu Jan 30 10:36:53 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92A9137B401 for ; Thu, 30 Jan 2003 10:36:51 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-67-115-74-123.dsl.lsan03.pacbell.net [67.115.74.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED37843F85 for ; Thu, 30 Jan 2003 10:36:50 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 9FC7867AF7; Thu, 30 Jan 2003 10:36:50 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 82C661722; Thu, 30 Jan 2003 10:36:50 -0800 (PST) Date: Thu, 30 Jan 2003 10:36:50 -0800 From: Kris Kennaway To: Brian Henning Cc: freebsd Subject: Re: java compiler Message-ID: <20030130183650.GC5952@rot13.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VywGB/WGlW4DM4P8" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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