As a jar. Do not copy the jar file to your project folder. Refer to the gf-client.jar in the glassfish installation directly. This jar depends on many other jars in the installation.
[Message sent by forum member 'nasradu8' (Sudarsan.Sridhar_at_sun.com)]
http://forums.java.net/jive/thread.jspa?messageID=381627