How to disable Java security manager?

You could try adding this to the main() of your program:

System.setSecurityManager(null);

Worked for me for a “trusted” WebStart application when I was having security manager issues. Not sure if it will work for your db4o case, but it might be worth a try.

EDIT: I’m not suggesting that this is a general solution to security manager problems. I was just proposing it as a way to help debug the original poster’s problem. Clearly, if you want to benefit from a security manager then you should not disable it.

Leave a Comment