Please, if anybody knows where can i get information about editing
java.home/jre/lib/security/java.policy file, let me know immediatly. It
is very urgent. Possibly someone out there knows what lines should be
written in this file if i got the following errors while running applet:
- while trying to load a Texture from file:
--------------------------------
java.lang.NullPointerException
at
com.sun.j3d.utils.image.TextureLoader.getTexture(TextureLoader.java:342)
at ColumnScene.<init>(ColumnScene.java:70)
at ExClip.buildScene(ExClip.java:98)
at Example.buildUniverse(Example.java:296)
at Example.init(Example.java:100)
at sun.applet.AppletPanel.run(AppletPanel.java:357)
at java.lang.Thread.run(Thread.java:479)
---------------------------------
In TextureLoader constructer there are the following lines:
----------------------------
java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction() {
public Object run() {
image[0] = toolkit.getImage(fn); //texture file to be loaded
return null;
}
}
-------------------------------
I'm almost sure that the error i got is because of security violation,
since the same program runs just fine as Java application.
Another question is whether i somehow can stop VM from the applet. I
know that usually this is impossible (eg, to stop NS original VM). On
the other hand i think that this can be done somehow under Java Plug-in
by means of editing the same java.policy file. If this can't be done
then can i somehow distinguish whether Java program runs as applet or
application.
BADLY need your help! Eagerly waiting for any help, thank u VERY much,
vladimir
--
>~~~~~~~<============>~~~~~~~<
Join in Java community now!
http://javacafe.virtualave.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".