Printing in IE4 and Netscape4
Posted on 1998-05-04
Netscape defines a set of classes to grant applets permissions to do specific things. I use the PrivilegeManager.enablePrivilege method to request permissions for my signed applet. Including these calls in my code causes IE4 to toss exceptions because it can't find the Netscape classes. Java doesn't give me conditional complitation, and I don't want to maintain 2 sets of sources, one for each browser.
BTW, the Capablities API works fine with Netscape 4.05.
I can detect which browser my applet is running under.
Is there any way to use the Netscape classes from code that can be run without exceptions under IE4?