InterClient connect fails when run as an applet

By: Quinn Wildman

Abstract: InterClient cannot connect as an applet when InterServer is running on the same machine.

Q. I'm using InterClient to connect to InterBase via InterServer via an applet and I'm getting the following error: access denied (java.lang.RuntimePermission

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.

Server Response from: ETNASC04