Re: status of gcj

David Daney <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Johannes Klarenbeek wrote:
> 2008/9/17 David Daney <[email protected]>:
>>
>> The current (as of 4.3) version no longer generates byte code, nor directly
>> compiles .java source files.  Instead we use ecj (Eclipse Compiler for Java)
>> to do the java->class compilation.  GCJ then compiles the class files
>> (bytecode) into native code.  This give us full java generics support.
> 
> so that means to compile a java file from source i need to download
> the eclipse compiler for java as a seperate download..
> 

You need a working gcj to do it.

The configuration and build instructions for GCC tell you how to build a 
working gcj.  If you read them you will see where it says to run the 
contrib/download_ecj script to obtain the proper ecj.

An often simpler alternative is to use a system that has a pre-built gcj 
installed.

David Daney
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.