mercredi 27 août 2014

Applet referencing to localhost gets blocked if html is on shared drive


Vote count:

0




I have an html file with applet code like



<applet code="myapplet.class" archive="http://localhost:8080/myapplets.jar"width="350" height="350"></applet>


The applet loads fine if the html file is local to the machine but if that html file is on shared drive (windows) and if html file opened ( so that the address in the address bar is \X.X.X.X\testhtml\myapplethost.html ) then While applet is trying to load , this exception is thrown



java.lang.SecurityException: Permission denied: http://localhost:8080/myapplets.jar


I have added both the



http://localhost:8080 and file:\\X.X.X.X\testhtml


to the exception list. Have lowered the security to the lowest possible (i.e Medium) in java control panel (JRE 1.7 upate 67) but this applet keeps getting blocked. Is there any settign that can help here to allow the access to applet from the shared location? Thanks



asked 1 min ago







Applet referencing to localhost gets blocked if html is on shared drive

Aucun commentaire:

Enregistrer un commentaire