Applet
Publicado por bn (7 intervenciones) el 09/08/2004 20:26:12
Estoy intentando cargar un fichero de idiomas desde un JApplet.
Tengo el siguiente código:
try{
Properties traduce = new Properties();
FileInputStream fichIdioma = new FileInputStream(idioma_esp);
traduce.load(fichIdioma);
}catch(IOException ie){System.out.println("EXCEPCION AL MANEJAR FICHERO DE LOCALIZACION: "+ie);}
catch(Exception e){System.out.println("EXCEPCION EN LOCALIZACION DE APLICACION: "+e);}
y me da el siguiente error:
EXCEPCION EN LOCALIZACIÓN DE APLICACION: java.security.AccessControlException: access denied (java.io.FilePermission idioma_es read)
No me deja leer el fichero de idiomas (idioma_esp) para recoger todas las traducciones y mostrarlas en el JApplet, ¿qué estoy haciendo mal o cómo lo tendría que hacer?
Tengo el siguiente código:
try{
Properties traduce = new Properties();
FileInputStream fichIdioma = new FileInputStream(idioma_esp);
traduce.load(fichIdioma);
}catch(IOException ie){System.out.println("EXCEPCION AL MANEJAR FICHERO DE LOCALIZACION: "+ie);}
catch(Exception e){System.out.println("EXCEPCION EN LOCALIZACION DE APLICACION: "+e);}
y me da el siguiente error:
EXCEPCION EN LOCALIZACIÓN DE APLICACION: java.security.AccessControlException: access denied (java.io.FilePermission idioma_es read)
No me deja leer el fichero de idiomas (idioma_esp) para recoger todas las traducciones y mostrarlas en el JApplet, ¿qué estoy haciendo mal o cómo lo tendría que hacer?
Valora esta pregunta


0