community.borland.com

Article #28421: InterClient connect fails when run as an applet

Q. I'm using InterClient to connect to InterBase via InterServer via an applet and I'm getting the following error:

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

Yet when I try to connect as an application via:

java interbase.interclient.utils.CommDiag

It works fine. Why is this?

A. The rules for applets state they may not modify a local file, which InterBase must do. Therefore, this type of connection results in this error. If you must run InterClient on the same CPU as InterServer/InterBase you must run java as an application.

Last Modified: 20-FEB-02