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. > > I was told all I need to do is add the flag -x java and it will work. > > For example: gcc -x java HelloWorld.java > > when i tried this i get the following error: > > gcc: Warning: `-x java' after last input file has no effect > > 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 > > 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
Description: PGP signature