Is Java installed?

telega <[email protected]> Tue, 27 Nov 2007 23:46:47 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.java
Organization http://groups.google.com
Message-ID <625e1190-1f17-4cee-857c-025ec22279a9__44940.412863116$1196256002$gmane$org@w28g2000hsf.googlegroups.com>
Hi

Is it possible to identify if Java is installed? When Java isn't
installed and I'm trying to access any java object, like
"alert(Packages.java.lang.String);" the execution of the current
javascript is silently interrupted and no exception is thrown.

Thanks,
telega