APA-Module Components Web Client
A29247-X2-X-8-7670 55
Grant Java rights on the local computer using the 'java.policy' file
For safety reasons vitual machines (VM), which are required e.g. by java applets in a web
browser, have very restricted rights on the local computer. You have to grant rights to the
java VM in order to access the local filesystem via the PJM in the Web. You can grant these
rights using the file 'java.policy' in the home directory:
Win9x: <Systemdrive>:\windows\profiles\<username> bzw.
WinNT 4: <Systemdrive>:\winnt\profiles\<useneame> bzw.
Win 2000: <Systemdrive>:\documents and settings\<Username>
Minimal rights necessary for the server are documented in the following example of a ja-
va.policy file:
-----------------------------------------------------------------------------------------------------------------------
grant codeBase "http://160.120.20.112/explorer/codebase/pjm.jar" {
permission java.lang.RuntimePermission "modifyThread";
permission java.lang.RuntimePermission "shutdownHooks";
};
grant codeBase "http://160.120.20.112/explorer/codebase/ppBase.jar" {
permission java.lang.RuntimePermission "shutdownHooks";
};
grant codeBase "http://160.120.20.112/explorer/ppExplorer.jar" {
permission java.lang.RuntimePermission "shutdownHooks";
};
-----------------------------------------------------------------------------------------------------------------------
The IP address 160.120.20.112 has to be replaced by the address of the server. If this con-
tents is placed as 'java.policy' in the home directory of the user, all browser processes have
to be stopped. The new rules are only accepted after a restart.
Another possibility to grant these rights is to use the program 'policytools', which is a free
tool provided by Sun Microsystems™. The use of this tool is not described here.
For safety reasons it is not recommended to grant access rights to the local file system via
the 'java.policy' file.
Java Runtime System
The Java Runtime Environment 1.3.1 is required for the Web PJM. It is offered for installa-
tion after the first start of the Web PJM.