# Re: How to print from APPLET ??

Marianne Mueller (Marianne.Mueller@Eng)
Fri, 6 Mar 1998 15:35:50 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marianne Mueller: "Re: Confused with JAVA security !!!!"
- Previous message: Roland Schemers: "Re: GSSAPI and Java"
- Maybe in reply to: swarraj: "How to print from APPLET ??"

    Date: Fri, 6 Mar 1998 15:35:50 -0800 (PST)

    From: Marianne Mueller <Marianne.Mueller@Eng>

    Subject: Re: How to print from APPLET ??

    To: swarraj@hotmail.com

> we are facing problem with the printing from an applet. We use netscape
> 4.04 with jdk 1.1.4 patch. We have not signed the applet and trying to
> use the Netscape 4.04 's feature to use the security API, we have added
> following line in the code and tested it on the LOCAL machine , where it
> works fine.
>
> PrivilegeManager.enablePrivilege("UniversalPrintJobAccess");
>
> But when we port it on the Netscape server running on the NT machine we
> get security Exception. : netscape.security.ForbiddenTargetException
>
> Will u please guide us in this matter.

I guess I'm not sure what the difference is between your "local" machine
and your NT machine. However, those APIs (PrivilegeManager.enablePrivilege,
and so on) are Netscape-specific and you'll need to contact netscape
directly to get more info about them. If when you say "port it to the NT
machine" you mean that you're trying to run this applet in Microsoft's
Internet Explorer, that certainly won't work since Microsoft doesn't
support those Netscape-specific APIs.

For more information about netscape's APIs, see

http://developer.netscape.com/software/signedobj/index.html

>
> We have tried to use the Signed applet technique as per the DUKE
> signing example on ur site but it also failed.

The JDK 1.x applet signing is unfortunately not interoperable with
the current Netscape signing format but we hope to address this in
future releases.

You might try using the Activator to see if you can
use the JavaSoft JDK 1.x functionality in that way. There will be
an Activator for JDK1.2 when JDK1.2 comes out later this year.

For more info on Activator, see
http://java.sun.com/products/activator

--Marianne

- Next message: Marianne Mueller: "Re: Confused with JAVA security !!!!"
- Previous message: Roland Schemers: "Re: GSSAPI and Java"
- Maybe in reply to: swarraj: "How to print from APPLET ??"