ExceptionInInitializerError Exception while invoking NSRuntime in an signed applet...Please help..
ExceptionInInitializerError Exception while invoking NSRuntime in an signed applet...Please help..
- Subject: ExceptionInInitializerError Exception while invoking NSRuntime in an signed applet...Please help..
- From: jdc ram <email@hidden>
- Date: Tue, 11 May 2004 11:46:35 -0700 (PDT)
Hi All,
Iam trying to invoke NSRuntime class to add a new
library path using the method
addPathToLibrarySearchPaths(). But Iam getting
"java.lang.ExceptionInInitializerError" when I try to
execute NSRuntime.addPathToLibrarySearchPaths("/tmp").
But a similar code in a standalone applications fine.
Please note the applet is signed one. The stack trace
is as follows...
java.lang.ExceptionInInitializerError
at
ns.gui.MacOSXHelper.updatePath(MacOSXHelper.java:9)
at
ns.gui.NSLoadApplet.loadLibraryForMac(NSLoadApplet.java:1515)
at ns.gui.NSLoadApplet.init(NSLoadApplet.java:90)
at sun.applet.AppletPanel.run(AppletPanel.java:353)
at java.lang.Thread.run(Thread.java:552)
Caused by: java.security.AccessControlException:
access denied (java.util.PropertyPermission *
read,write)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at
java.security.AccessController.checkPermission(AccessController.java:401)
at
java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at
java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1243)
at java.lang.System.getProperties(System.java:501)
at
com.apple.cocoa.foundation.NSRuntime.<clinit>(NSRuntime.java:17)
... 5 more
Please provide your expert comments on the same.
Thanks,
Ram
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.