accessClassInPackage.sun.awt.geom

My class imports sun.awt.geom.Crossings in order to implement a similar-to-java.awt.Polygon intersects method, upon float values. This takes place in an applet. The all known error message appears in the java console:

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.awt.geom)

I should actually sign my applet just to import that package!? (lets say the policy file is not an option in my case)

Why is that package different in such a way, than other packages? Is it not located together with all the other classes that compose the jre? (Also, is it documented somewhere?) May it be that the jre of the client that runs the applet would not necessarily provide this package or is it a standard in the J2SE jre?

When an applet imports java.awt.Polygon (wihch imports sun.awt.geom.Crossings) no AccessControlException in thrown. I wonder.

Thanks.

mplexus2

[953 byte] By [mplexus2a] at [2007-9-29 21:47:03]
# 1
all the sun.* packages are offlimits to Applets since they contain code that could comprimise the system, and they do not contain any security checks. There may be an exception in one of the sun's get audio file.
subartsha at 2007-7-16 2:06:49 > top of Java-index,Security,Signed Applets...