Re: java compiler

2003-01-30 Thread Kris Kennaway
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



msg17266/pgp0.pgp
Description: PGP signature


java compiler

2003-01-30 Thread Brian Henning
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?

Thanks,

Brian

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?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message