M
Marco
I need to permit to an Applet to read and write HD files.
All ok with java 1.2, 1.3, 1.4 and 1.5 of Sun.
But when, before signing a verson of my applet written for Internet Explorer
without Java SUN (Microsoft 1.1.4 JVM), I try to insert this:
try
{
Class s=Class.forName("com.ms.security.PolicyEngine");
if (s!=null)
{s.assertPermission(com.ms.security.PermissionID.FILEIO);}
}
catch(Throwable e)
{System.out.println("Error: "+e);}
The result, is, while I compile my applet, the following error:
package com.ms.security does not exist
s.assertPermission(com.ms.security.PermissionID.FILEIO);
I try Class p=com.ms.security.PermissionID; and
s.assertPermission(p.FILEIO); instead, but the error is "No variable FILEIO
defined in class java.lang.Class"
How can I do? I have only Sun javac for compile.
N.B.I writed 2 applets, one for SUN 1.4, and the another for Microsoft JVM,
with a javascript that run the correct one in the browser, but only the one
for java Sun works properly.
All ok with java 1.2, 1.3, 1.4 and 1.5 of Sun.
But when, before signing a verson of my applet written for Internet Explorer
without Java SUN (Microsoft 1.1.4 JVM), I try to insert this:
try
{
Class s=Class.forName("com.ms.security.PolicyEngine");
if (s!=null)
{s.assertPermission(com.ms.security.PermissionID.FILEIO);}
}
catch(Throwable e)
{System.out.println("Error: "+e);}
The result, is, while I compile my applet, the following error:
package com.ms.security does not exist
s.assertPermission(com.ms.security.PermissionID.FILEIO);
I try Class p=com.ms.security.PermissionID; and
s.assertPermission(p.FILEIO); instead, but the error is "No variable FILEIO
defined in class java.lang.Class"
How can I do? I have only Sun javac for compile.
N.B.I writed 2 applets, one for SUN 1.4, and the another for Microsoft JVM,
with a javascript that run the correct one in the browser, but only the one
for java Sun works properly.