is mozilla's faq on the subject. Note you'll want most likely the plugin in the ns610-gcc32 dir under java (you don't mention your Mozilla version: >= 1.4?). link to it from your mozilla plugins directory.
the mozdev general plugin page.
test by typing 'about
:plugins' in the url window (no quotes, no spaces).