Java Applet works in IE but not Netscape 7.x....

Someone from the Java programming forum suggested that I post this here. **** I hate being a newbie... :)

I have a digitally signed applet that needs to brigde the cross domain communications issues inherint with the Java Security "Sandbox".

The applet works as expected in I.E. 6.x but when attempting to load in Netscape, I get an error consistant with what I would expect if the applet was NOT signed.

Here is the error:

Error: java.security.AccessControlException: access denied (java.net.SocketPermission machine.name.com resolve)

Here is the html code I am using to embed the applet:

<applet

code="wrapper.class"

archive="wrapper.jar"

name=wrapper

width=0

height=0>

</applet>

When I access the page, it gives me the alert box that you would expect to see when accessing a signed applet (in both browsers) but it just doesnt work in Netscape.

Any tips/tricks?

Thanks,

Chris Meyer

[1000 byte] By [chris.meyer.a] at [2007-9-29 19:09:11]
# 1
We sign with the Netscape signing tool, despite the fact that we only support/use Internet Explorer.So, maybe try using Netscapes signtool ?regards,Owen
omcgoverna at 2007-7-15 19:44:45 > top of Java-index,Security,Signed Applets...
# 2

[nobr]I don't really know what the problem is, but Actually I use a differen tag structure

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>

<HEAD>

<TITLE>An Applet webpage</TITLE>

</HEAD>

<BODY bgcolor='#000000'>

<object classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93'

codebase='http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0'

width='100%'

height='100%'>

<param name='code' value='package.YourApplet.class'>

<param name='codebase' value='path/of/your/jar/'>

<param name='archive' value='YourJar.jar'>

<param name='type' value='application/x-java-applet;version=1.4'>

<param name='scriptable' value='false'>

<COMMENT>

<APPLET width='100%' height='100%' code='package.YourApplet' codebase='path/of/your/jar/' archive='YourJar.jar'>

</APPLET>

</COMMENT>

<font color='white' size='2'>

NO Java 2 SDK, Standard Edition v 1.4 (minimum) required to run the APPLET!!!

<br>

Plug-in will be installed <font size =' 2' color='red'>[<a HREF='http://java.sun.com/j2se/1.4/index.html' TARGET='new'><font size =' 2' color='yellow'>UNIX, MacOS & Other Based</font></a>]</font> - <font size =' 2' color='red'>[<a HREF='http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0'><font size =' 2' color='yellow'>Windows Based</font></a>]</font> More info <font size =' 2' color='red'>[<a HREF='http://java.sun.com/getjava/index.html'><font size =' 2' color='yellow'>here</font></a>]</font>. To install latest Plug-in, access Sun Microsystems Official Website<font size =' 2' color='red'>[<a HREF='http://java.sun.com/products/plugin/'><font size =' 2' color='yellow'>http://java.sun.com/products/plugin/</font></a>]</font>.

</font>

</object>

</BODY>

</HTML>

The object tag is for IE, if Netscape, it uses the Applet tag. I work on IE6 and N7.0. I use signed applets, must work.

Hope to be helpfull, make me know if not

--

...where Java has never gone before.[/nobr]

PowermikeGXa at 2007-7-15 19:44:45 > top of Java-index,Security,Signed Applets...