Run Java code on my own JVM

2019-08-30 02:52发布

问题:

In another discussion, someone say something about run the java code on its own jvm, which ignores SecurityManager.

Is it possible? (and as easy as saying?)

回答1:

Yes it is possible. You can download a JVM open source implementation, modify it to ignore the security manager and build it. But I think this is not an easy task. This sun forum may help you



回答2:

Google "java security policy" for directions on setting up the security policy for your own jvm. You can change the rules about which classes and methods are restricted. It doesn't "ignore" the SecurityManager, it allows you to modify the rules.