Signing a jar for IE5 running on MAC OS 9.x
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Aliasgar_Muchhala
Posted On:   Wednesday, August 28, 2002 10:34 PM

Hi, I have a java applet that is signed using verisign certificates. I need this signed applet to access the system clipboard to cut/copy/paste texts. Here is what my code looks like... try { Clipboard clipboard = applet.getParent().getToolkit() .getSystemClipboard(); StringSelection contents = new StringSelection( "a test string to be copied to clipboard"); clipboard.setContents( contents, clipboardOwner ); applet.showStatus( "Copied to Clipboard" ); } catch( Exception e ) { System.out.println( "Error while trying to paste to clipboard." ); System.out.println( e );    More>>

Hi,



I have a java applet that is signed using verisign certificates. I need this signed applet to access the system clipboard to cut/copy/paste texts. Here is what my code looks like...



			

try
{
Clipboard clipboard = applet.getParent().getToolkit()
.getSystemClipboard();

StringSelection contents = new StringSelection(
"a test string to be copied to clipboard");

clipboard.setContents( contents, clipboardOwner );
applet.showStatus( "Copied to Clipboard" );
}
catch( Exception e )
{
System.out.println( "Error while trying to paste to clipboard." );
System.out.println( e );

}





Now, when i run this applet on IE 5 - Mac OSX, it works fine. However when i run this applet in IE 5 - Mac OS 9.2, i get a security exception. Can someone please explain this and suggest me a way to get this working on Mac 9.2



Thanks and Regards,

--Aliasgar M.--    <<Less

Re: Signing a jar for IE5 running on MAC OS 9.x

Posted By:   Christian_Blumenroehr  
Posted On:   Tuesday, October 1, 2002 07:27 AM

The problem is that OS 9.x uses jdk 1.1.8 instead of jdk 1.3
as it is the case in OS X. The signing mechanism changed with jdk1.2, so you have to sign your jar differently
for the old MAC. The problem now is however that the
signing tool in jdk1.1.8 which is called "javakey"
does not support chaining of certificates. This in turn
means that you are forced to use a self-signed certificate,
since your certificate cannot be signed by a CA.
About | Sitemap | Contact