> From: "Jack Pien" <[EMAIL PROTECTED]>

> i have a couple of questions about the vrml97 loader.  some background first -
> i'm trying to open a .wrl file with the vrml97 loader from within an applet
> but i'm getting some security violations.  i have it setup such that my
> "server" machine has the vrml97 loader and my other applet .class files JAR'd
> up - my "client" machine just has Java3D installed and knows nothing about
> vrml loaders and such.  i want to ultimately be able to have a "client"
> view a VRML file on the "server" with a viewer running in a browser.


The VRML code is set up to be installed as an extension in the jre/lib/ext
directory.  It may be possible to use the VRML jarfile from the server as you
desire, but there are problems.

First off, this approach means that your users will need to download the VRML
jarfile each time they run your applet.  There may be some caching, but
installing the jarfile in the extensions directory eliminates the downloads
completely.

Second are the security problems you are encountering.  These come from the Java
security model.  Basically, a simple applet does not have permission to make new
socket connections, install new class loaders, read local files, etc.  A socket
connection back to the server where the applet is being loaded from should be
OK, but connecting to any other host is not allowed without further permissions.

The security model does allow the user to allow the applet to do these other
operations using signed jar files.  See the directions at
http://www.j3d.org/faq/browser.html for more info on using signed jar files.

Hope this helps,

Doug Gehringer
Sun Microsystems

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