Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We use a custom build Java applet daily on a host, but each time it writes a debug log file.

We don't have the source code for the applet.

It is possible to somehow block the applet from writing this log file?

It would be really nice, if read and write permissions could be disabled for the Java Applet.

share|improve this question
up vote 2 down vote accepted

In the JRE's lib/security directory is a file called java.policy. There are any number of capabilities you can add/deny in there, based on app/class/jar name?. If I remember correctly, a user can have a .java.policy in their home directory allowing you to control things on a per user basis. There is also a little GUI in the JRE bin directory called policytool for editing the policies. It's many years since I've set this up but we started with a deny all policy, ran the app and added capabilities until the app started to work.

Here are some URL's to get you started:

This is the number 1 hit on google for "java.policy", it's from 1998:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.