Hi
I�ve tried to load a obj file from an applet like this:
ObjectFile f = new ObjectFile();
Scene s = null;
try{
URL urlFile = new URL(getCodeBase(), filename);
}catch(MalformedURLException e){}
try{
s = f.load(filename);
}catch (FileNotFoundException e) {
System.err.println(e);
System.exit(1);
}
catch (ParsingErrorException e) {
System.err.println(e);
System.exit(1);
}
catch (IncorrectFormatException e) {
System.err.println(e);
System.exit(1);
}
return s.getSceneGroup();
But I get the following exception:
java.security.AccessControlException: access denied (java.io.FilePermission
test_delle.obj read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
at java.io.FileInputStream.<init>(FileInputStream.java:61)
at java.io.FileReader.<init>(FileReader.java:38)
at
com.sun.j3d.loaders.objectfile.ObjectFile.load(ObjectFile.java:712)
at Applet1.buildCube(Applet1.java:81)
at Applet1.init(Applet1.java:70)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)
Could someone help me?
Thank you
N
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
===========================================================================
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".