Hello,
I'm trying load a vrml file in an applet, with VrmlLoader. But, I got the following
exception:
exception: java.security.AccessControlException: access denied
(java.lang.RuntimePermission createClassLoader)
Do you had this problem before? How to handle it?
Following my fragment code:
protected URL getURL(String filename)
{
URL codeBase = getCodeBase();
URL url = null;
try
{ url = new URL(codeBase, filename); }
catch (java.net.MalformedURLException e)
{ System.err.println("Erro");
return null;
}
return url;
}
............
arquivoAmbiente = getURL("ambiente.wrl");
.............
VrmlLoader loader = new VrmlLoader();
bg.setCapability(Group.ALLOW_CHILDREN_EXTEND);
addKbdNavig(universe,bg);
try
{ s = loader.load(arquivo); }
catch (FileNotFoundException e) { }
catch (ParsingErrorException e) { }
catch (IncorrectFormatException e) { }
...........
Please, help-me!
Thanks a lot.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".