This sounds more like a general java security issue than a problem with the
loader. Java applets (running in a browser) don't have access to the client
machine filesystem / printer or other system resouces without permission
having been granted to access them. There are several ways to get
permission, all create new problems/ tradeoffs for your deployment process:
signing the jar that the applet is loaded from (only works with later
versions of the browsers), installing the jar the applet is loaded from in
the JDK runtime evironment lib/ext directory of the client machine (you have
to write and deploy an installation system), setting the appropriate
permissions in the client machine's security policy file (you have to
provide intstructions to a user how to go about changing the permissions
that need to be changed or automating this process (again your accessing the
filesystem here so you can't do this in an unsigned applet)). The Java
sandbox can make directly accessing file system resources on a client
machine a very messy bussiness.

-----Original Message-----
From: Jack Gundrum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 08, 2000 12:22 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] VRML97 Loader in a webpage


Has anyone used the com.sun.j3d.loaders.vrml97.VrmlLoader successfully in a
webpage?

There seems to be a problem with
the  com.sun.j3d.loaders.vrml97.VrmlLoader.pathToURL method.

I get the errors:

java.security.AccessControlException: access denied
(java.util.PropertyPermission * read,write)

        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.checkPropertiesAccess(SecurityManager.java:1246)

        at java.lang.System.getProperties(System.java:488)

        at
com.sun.j3d.loaders.vrml97.VrmlLoader.pathToURL(VrmlLoader.java:143)

        at com.sun.j3d.loaders.vrml97.VrmlLoader.load(VrmlLoader.java:104)
Jack S. Gundrum
Visualization Group
Center for Academic Computing
Penn State University
Email:[EMAIL PROTECTED]
Phone:(814)865-1863

===========================================================================
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".

===========================================================================
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".

Reply via email to