Static executables

Mohan Embar gnustuff@thisiscool.com
Tue Jan 31 06:15:00 GMT 2006


>Tom Tromey wrote:
>> It would be helpful if someone wrote a page for the gcc wiki about
>> static linking.
>
>Like this:?
>
>http://gcc.gnu.org/wiki/Statically%20linking%20libgcj

I wish I had that reference awhile ago.

One variation on this:

object dummy = new fully.qualified.name.of.missing.Class();

is this:

Class dummy = fully.qualified.name.of.missing.class;

(i.e. private static final Class c1 = gnu.java.locale.Calendar.class)

This avoids creating a new instance, which may not always
be possible.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/






More information about the Java mailing list