Thank you very much for the explanations. I am not
familiar with those security or permission issues
before. Will pay attention to them from now on.

Also, Xj3D is greatly helpful for me, before I knew
that, I thought I have to parse x3d file myself using
JAXP etc. just like I did before to some xml files,
extracted data myself and display them. Now I only
need to make the LoaderDemo an extension of JPanel and
put it in my swing UI, saves me lots of work! So
happy.

Thanks!
Mian


--- Justin Couch <[EMAIL PROTECTED]> wrote:
> kindy huang wrote:
> > But I am wondering
> > why before I did this, I could compile my program
> > without any problem with classpath set, I just
> could
> > not run the program? what 's tricky stuff between
> > compile and run?
>
> The compilation doesn't look at security issues. At
> runtime, in order to
> allow us to run inside an applet we have to make use
> of protected
> privilege blocks. If you don't surround the code
> with these blocks, then
> the code executes with the permissions of the using
> applet. Since we're
> trying to run as a complete VRML/X3D environment at
> that point, we need
> the ability to do everything and anything -
> including making arbitrary
> network connections, thread control, URLClassLoader
> use (for loading
> Java scripts) and more. If you don't enable the
> permissions then the
> loader works just like any other piece of applet
> code, even if you have
> it installed in the lib/ext directory. That's the
> reason both the old
> Sun and NCSA loaders are close to useless in an
> applet environment.
> Those blocks are only needed for code running under
> an applet, but
> they're not need (ie ignored by the JVM) running as
> local code.
>
> > Hm, I was not seeing the exceptions in an applet.
> I
> > just tried to run xj3d in my swing client
>
> It depends on how the Swing client is set up. If
> you're doing J2EE work,
> you may find that the runtime setup of the J2EE
> client has some
> changes/restrictions to the normal security policy.
> I remember that the
> Sun J2EE RI had major issues with this, but JBoss
> running exactly the
> same code didn't.
>
> > Thanks for its author. (would he mind someone uses
> his code?)
>
> LoaderDemo's author is me. I believe we've put
> either BSD or public
> Domain licenses on the examples code. Everything
> else in Xj3D is either
> LGPL or GPL.
>
> --
> Justin Couch
> http://www.vlc.com.au/~justin/
> Java Architect & Bit Twiddler
> http://www.yumetech.com/
> Author, Java 3D FAQ Maintainer
> http://www.j3d.org/
>
-------------------------------------------------------------------
> "Humanism is dead. Animals think, feel; so do
> machines now.
> Neither man nor woman is the measure of all things.
> Every organism
> processes data according to its domain, its
> environment; you, with
> all your brains, would be useless in a mouse's
> universe..."
>                                                -
> Greg Bear, Slant
>
-------------------------------------------------------------------
>
>
===========================================================================
> 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".


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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