AccessControlException

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

Can someone please explain what this error is and what might cause it. I am trying to change our applets to run on the IPaq and when I try to test them using pappletviewer I get this error. The applets run perfectly normal in IE on a WinXX machine.

When I load them onto the Windows CE IPaq I dont get any response at all. Is there a java console on the ipaq? How does one debug problems without the ability to view errors?

[567 byte] By [kpoindexter] at [2007-9-26 5:02:14]
# 1

The application works with IE, because the browser runs a 1.1.x version of the JAVA runtime environment. The appletviewer you are using is propably JAVA2 based, which has a different security architecture.

2 solutions:

Put a .java.policy file in your home directory with the appropriate values (you can learn what to put inside in the security section of the JAVA tutorial) or step into appletviewers configuration menu and set the security settings to "unrestricted".

This should help.

Oliver

ofels at 2007-6-29 18:59:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...