dcsimg
codebase=file:\\ does not work in netscape 4.x
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, August 27, 2002 12:22 AM

Hi, My applet jar is available on client machine and html is in web server. When I try to access local applet using netscape 4.x I get blank page and in Java console I got follwoing error. But the same thing works in IE and netscape 6.0 # Security Exception: Illegal access from non-'file:' document to 'file:' codebase. # document: http://xxxxxx:18080/pinchangeapplet.html # codebase: file:/c: emp/ netscape.security.AppletSecurityException: security.Illegal access from non-'file:' document to 'file:' codebase. # document: http://xxxxxxx:18080/pinchangeapplet.html # codebase: file:/c: emp/ at java.lang.Throwable. (Compiled Code) at java.lang.Exception. (Compiled Code) at java.lang.RuntimeException. (Compiled Code)   More>>


Hi,


My applet jar is available on client machine and html is in web server. When I try to access local applet using netscape 4.x I get blank page and in Java console I got follwoing error. But the same thing works in IE and netscape 6.0



# Security Exception: Illegal access from non-'file:' document to 'file:' codebase. # document: http://xxxxxx:18080/pinchangeapplet.html # codebase: file:/c: emp/ netscape.security.AppletSecurityException: security.Illegal access from non-'file:' document to 'file:' codebase. # document: http://xxxxxxx:18080/pinchangeapplet.html # codebase: file:/c: emp/ at java.lang.Throwable. (Compiled Code) at java.lang.Exception. (Compiled Code) at java.lang.RuntimeException. (Compiled Code) * at java.lang.SecurityException. (Compiled Code) at netscape.security.AppletSecurityException. (Compiled Code) at netscape.applet.MozillaAppletContext.initApplet(Compiled Code) at netscape.applet.MozillaAppletContext.initApplet(Compiled Code) # Security Exception: Illegal access from non-'file:' document to 'file:' codebase. # document: http://xxxxxx:18080/pinchangeapplet.html # codebase: file:/c: emp/ netscape.security.AppletSecurityException: security.Illegal access from non-'file:' document to 'file:' codebase. # document: http://xxxxxx:18080/pinchangeapplet.html # codebase: file:/c: emp/ at java.lang.Throwable. (Compiled Code) at java.lang.Exception. (Compiled Code) at java.lang.RuntimeException. (Compiled Code) * at java.lang.SecurityException. (Compiled Code) at netscape.security.AppletSecurityException. (Compiled Code) at netscape.applet.MozillaAppletContext.initApplet(Compiled Code) at netscape.applet.MozillaAppletContext.initApplet(Compiled Code)



My html file contains the following



   <<Less

Re: codebase=file:\\ does not work in netscape 4.x

Posted By:   Gautam_Marwaha  
Posted On:   Tuesday, August 27, 2002 11:36 PM

try:

1. giving all forward slashes in codebase element

2. get rid of codebase element and provide full path to jar in archive element (with foward slashes)
About | Sitemap | Contact