Run Java code on my own JVM

Deadly 提交于 2020-01-07 04:56:06

问题


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.



来源:https://stackoverflow.com/questions/2517735/run-java-code-on-my-own-jvm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!