Adding new classes

Tom Tromey
Sun Jul 22 09:07:00 GMT 2001

>>>>> "Nic" == Nic Ferrier <> writes:

Nic> Can someone give me a brief overview of how I add a class to GCJ's
Nic> library implementation?

Mark covered it, but just for the record:

* Add the source file to the appropriate line in libjava/
  The "appropriate" line depends on the package that the class is in.
  Generally it should be obvious by looking through  If
  it isn't, tell me and I will add a comment clarifying the

* Run automake in libjava.  See HACKING for more info.
  (I think this automake version is also on ftp at
  in pub/java, but I'm not certain.)

* If the file is in java.lang,, or java.util (including
  subpackages), re-run scripts/ to update the javaprims.h

I think that's it.

If you're generating a patch there is a program you can get to do an
offline `cvs add' (it will fake an `add' if you don't have write
permission yet).  Then you can use `cvs diff -N' to generate the
patch.  See


More information about the Java mailing list