Run Java code on my own JVM

2019-08-30 02:25发布

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?)

2条回答
\"骚年 ilove
2楼-- · 2019-08-30 03:04

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.

查看更多
唯我独甜
3楼-- · 2019-08-30 03:08

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

查看更多
登录 后发表回答